mirror of
https://github.com/FEX-Emu/libunwind.git
synced 2024-11-30 18:00:59 +00:00
ppc64: Make access_fpreg function accept fp and v registers
This commit is contained in:
parent
1f4929c05d
commit
7c079200d0
@ -169,13 +169,11 @@ access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
|
||||
ucontext_t *uc = arg;
|
||||
unw_fpreg_t *addr;
|
||||
|
||||
if ((reg - UNW_PPC64_F0) < 0)
|
||||
/* Allow only 32 fregs and 32 vregs */
|
||||
if (!(((unsigned) (reg - UNW_PPC64_F0) < 32)
|
||||
||((unsigned) (reg - UNW_PPC64_V0) < 32)))
|
||||
goto badreg;
|
||||
|
||||
if ((unsigned) (reg - UNW_PPC64_V0) >= 32)
|
||||
goto badreg;
|
||||
|
||||
|
||||
addr = uc_addr (uc, reg);
|
||||
if (!addr)
|
||||
goto badreg;
|
||||
|
Loading…
Reference in New Issue
Block a user