mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-24 01:00:29 +01:00
(common_init): If caching is enabled, validate the cache first.
(Logical change 1.153)
This commit is contained in:
parent
95589da62c
commit
172b01d775
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ common_init (struct cursor *c)
|
||||||
unw_word_t bspstore;
|
unw_word_t bspstore;
|
||||||
int i, ret;
|
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->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_BSP] = IA64_REG_LOC (c, UNW_IA64_AR_BSP);
|
||||||
c->loc[IA64_REG_BSPSTORE] = IA64_REG_LOC (c, UNW_IA64_AR_BSPSTORE);
|
c->loc[IA64_REG_BSPSTORE] = IA64_REG_LOC (c, UNW_IA64_AR_BSPSTORE);
|
||||||
|
|
Loading…
Reference in a new issue