mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 20:52:55 +01:00
(common_init): Initialize NaT-bit locations via IA64_REG_NAT_LOC()
macros. (Logical change 1.181)
This commit is contained in:
parent
be1d46b41c
commit
fcb151f6ec
1 changed files with 6 additions and 6 deletions
|
@ -29,6 +29,7 @@ static inline int
|
||||||
common_init (struct cursor *c)
|
common_init (struct cursor *c)
|
||||||
{
|
{
|
||||||
unw_word_t bspstore;
|
unw_word_t bspstore;
|
||||||
|
uint8_t *natp;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
||||||
if (c->as->caching_policy != UNW_CACHE_NONE)
|
if (c->as->caching_policy != UNW_CACHE_NONE)
|
||||||
|
@ -52,12 +53,11 @@ common_init (struct cursor *c)
|
||||||
c->loc[IA64_REG_R6] = IA64_REG_LOC (c, UNW_IA64_GR + 6);
|
c->loc[IA64_REG_R6] = IA64_REG_LOC (c, UNW_IA64_GR + 6);
|
||||||
c->loc[IA64_REG_R7] = IA64_REG_LOC (c, UNW_IA64_GR + 7);
|
c->loc[IA64_REG_R7] = IA64_REG_LOC (c, UNW_IA64_GR + 7);
|
||||||
|
|
||||||
/* This says that each NaT bit is stored along with the
|
natp = c->nat_bitnr;
|
||||||
corresponding preserved register: */
|
c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4, &natp[0]);
|
||||||
c->loc[IA64_REG_NAT4] = IA64_LOC_REG (4, 0);
|
c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5, &natp[1]);
|
||||||
c->loc[IA64_REG_NAT5] = IA64_LOC_REG (5, 0);
|
c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6, &natp[2]);
|
||||||
c->loc[IA64_REG_NAT6] = IA64_LOC_REG (6, 0);
|
c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7, &natp[3]);
|
||||||
c->loc[IA64_REG_NAT7] = IA64_LOC_REG (7, 0);
|
|
||||||
|
|
||||||
c->loc[IA64_REG_B1] = IA64_REG_LOC (c, UNW_IA64_BR + 1);
|
c->loc[IA64_REG_B1] = IA64_REG_LOC (c, UNW_IA64_BR + 1);
|
||||||
c->loc[IA64_REG_B2] = IA64_REG_LOC (c, UNW_IA64_BR + 2);
|
c->loc[IA64_REG_B2] = IA64_REG_LOC (c, UNW_IA64_BR + 2);
|
||||||
|
|
Loading…
Reference in a new issue