1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 01:27:39 +01:00

(run_script): Remove erroneous calls to rotate_gr(). The unwind

directives specify physical stacked register numbers and
	the register-backing store always represents physical
	registers, so it was wrong to rotate here.

(Logical change 1.184)
This commit is contained in:
mostang.com!davidm 2004-03-19 08:18:44 +00:00
parent 18d33f37d5
commit eed0c54d28

View file

@ -552,7 +552,6 @@ run_script (struct ia64_script *script, struct cursor *c)
/* This is by far the most common operation: */ /* This is by far the most common operation: */
if (likely (opc == IA64_INSN_MOVE_STACKED)) if (likely (opc == IA64_INSN_MOVE_STACKED))
{ {
val = rotate_gr (c, val);
if ((ret = ia64_get_stacked (c, val, &loc, NULL)) < 0) if ((ret = ia64_get_stacked (c, val, &loc, NULL)) < 0)
return ret; return ret;
} }
@ -612,7 +611,6 @@ run_script (struct ia64_script *script, struct cursor *c)
break; break;
case IA64_INSN_MOVE_STACKED_NAT: case IA64_INSN_MOVE_STACKED_NAT:
val = rotate_gr (c, val);
if ((ret = ia64_get_stacked (c, val, &loc, &nat_loc)) < 0) if ((ret = ia64_get_stacked (c, val, &loc, &nat_loc)) < 0)
return ret; return ret;
assert (!IA64_IS_REG_LOC (loc)); assert (!IA64_IS_REG_LOC (loc));