|
From: <sv...@va...> - 2014-12-17 11:52:47
|
Author: florian
Date: Wed Dec 17 11:52:39 2014
New Revision: 14818
Log:
For s390 use symbolic register names.
Modified:
trunk/coregrind/m_machine.c
trunk/coregrind/m_syswrap/syswrap-s390x-linux.c
Modified: trunk/coregrind/m_machine.c
==============================================================================
--- trunk/coregrind/m_machine.c (original)
+++ trunk/coregrind/m_machine.c Wed Dec 17 11:52:39 2014
@@ -106,9 +106,9 @@
regs->r_pc = (ULong)VG_(threads)[tid].arch.vex.guest_IA;
regs->r_sp = (ULong)VG_(threads)[tid].arch.vex.guest_SP;
regs->misc.S390X.r_fp
- = VG_(threads)[tid].arch.vex.guest_r11;
+ = VG_(threads)[tid].arch.vex.guest_FP;
regs->misc.S390X.r_lr
- = VG_(threads)[tid].arch.vex.guest_r14;
+ = VG_(threads)[tid].arch.vex.guest_LR;
# elif defined(VGA_mips32)
regs->r_pc = VG_(threads)[tid].arch.vex.guest_PC;
regs->r_sp = VG_(threads)[tid].arch.vex.guest_r29;
Modified: trunk/coregrind/m_syswrap/syswrap-s390x-linux.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-s390x-linux.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-s390x-linux.c Wed Dec 17 11:52:39 2014
@@ -250,7 +250,7 @@
ctst->arch.vex.guest_r2 = 0;
if (sp != 0)
- ctst->arch.vex.guest_r15 = sp;
+ ctst->arch.vex.guest_SP = sp;
ctst->os_state.parent = ptid;
|