1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-29 04:31:45 +02:00

(common_init): If caching is enabled, validate the cache first.

(Logical change 1.153)
This commit is contained in:
hp.com!davidm 2004-01-20 01:51:17 +00:00
parent 95589da62c
commit 172b01d775

View file

@ -31,6 +31,10 @@ common_init (struct cursor *c)
unw_word_t bspstore;
int i, ret;
if (c->as->caching_policy != UNW_CACHE_NONE)
/* ensure cache doesn't have any stale contents: */
ia64_validate_cache(c->as);
c->cfm_loc = IA64_REG_LOC (c, UNW_IA64_CFM);
c->loc[IA64_REG_BSP] = IA64_REG_LOC (c, UNW_IA64_AR_BSP);
c->loc[IA64_REG_BSPSTORE] = IA64_REG_LOC (c, UNW_IA64_AR_BSPSTORE);