Author: sewardj
Date: Wed Jan 15 10:25:55 2014
New Revision: 13776
Log:
arm64: rename guest_SP to guest_XSP so as to avoid a name clash with
guest_SP from s390 world.
Modified:
trunk/coregrind/m_debugger.c
trunk/coregrind/m_initimg/initimg-linux.c
trunk/coregrind/m_machine.c
trunk/coregrind/m_sigframe/sigframe-arm64-linux.c
trunk/coregrind/pub_core_machine.h
trunk/drd/drd_load_store.c
Modified: trunk/coregrind/m_debugger.c
==============================================================================
--- trunk/coregrind/m_debugger.c (original)
+++ trunk/coregrind/m_debugger.c Wed Jan 15 10:25:55 2014
@@ -268,7 +268,7 @@
uregs.regs[28] = vex->guest_X28;
uregs.regs[29] = vex->guest_X29;
uregs.regs[30] = vex->guest_X30;
- uregs.sp = vex->guest_SP;
+ uregs.sp = vex->guest_XSP;
uregs.pc = vex->guest_PC;
uregs.pstate = LibVEX_GuestARM64_get_nzcv(vex); /* is this correct? */
return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &uregs);
Modified: trunk/coregrind/m_initimg/initimg-linux.c
==============================================================================
--- trunk/coregrind/m_initimg/initimg-linux.c (original)
+++ trunk/coregrind/m_initimg/initimg-linux.c Wed Jan 15 10:25:55 2014
@@ -1064,8 +1064,8 @@
VG_(memset)(&arch->vex_shadow1, 0, sizeof(VexGuestARM64State));
VG_(memset)(&arch->vex_shadow2, 0, sizeof(VexGuestARM64State));
- arch->vex.guest_SP = iifii.initial_client_SP;
- arch->vex.guest_PC = iifii.initial_client_IP;
+ arch->vex.guest_XSP = iifii.initial_client_SP;
+ arch->vex.guest_PC = iifii.initial_client_IP;
# elif defined(VGP_s390x_linux)
vg_assert(0 == sizeof(VexGuestS390XState) % 16);
Modified: trunk/coregrind/m_machine.c
==============================================================================
--- trunk/coregrind/m_machine.c (original)
+++ trunk/coregrind/m_machine.c Wed Jan 15 10:25:55 2014
@@ -99,7 +99,7 @@
= VG_(threads)[tid].arch.vex.guest_R7;
# elif defined(VGA_arm64)
regs->r_pc = VG_(threads)[tid].arch.vex.guest_PC;
- regs->r_sp = VG_(threads)[tid].arch.vex.guest_SP;
+ regs->r_sp = VG_(threads)[tid].arch.vex.guest_XSP;
regs->misc.ARM64.x29 = VG_(threads)[tid].arch.vex.guest_X29;
regs->misc.ARM64.x30 = VG_(threads)[tid].arch.vex.guest_X30;
# elif defined(VGA_s390x)
Modified: trunk/coregrind/m_sigframe/sigframe-arm64-linux.c
==============================================================================
--- trunk/coregrind/m_sigframe/sigframe-arm64-linux.c (original)
+++ trunk/coregrind/m_sigframe/sigframe-arm64-linux.c Wed Jan 15 10:25:55 2014
@@ -143,7 +143,7 @@
SC2(24); SC2(25); SC2(26); SC2(27);
SC2(28); SC2(29); SC2(30);
# undef SC2
- sc->sp = tst->arch.vex.guest_SP;
+ sc->sp = tst->arch.vex.guest_XSP;
sc->pc = tst->arch.vex.guest_PC;
sc->pstate = 0; /* slack .. could do better */
@@ -268,7 +268,7 @@
vg_assert(VG_(is_valid_tid)(tid));
tst = VG_(get_ThreadState)(tid);
- sp = tst->arch.vex.guest_SP;
+ sp = tst->arch.vex.guest_XSP;
//ZZ if (has_siginfo) {
struct rt_sigframe *frame = (struct rt_sigframe *)sp;
Modified: trunk/coregrind/pub_core_machine.h
==============================================================================
--- trunk/coregrind/pub_core_machine.h (original)
+++ trunk/coregrind/pub_core_machine.h Wed Jan 15 10:25:55 2014
@@ -129,8 +129,8 @@
# define VG_FRAME_PTR guest_R11
#elif defined(VGA_arm64)
# define VG_INSTR_PTR guest_PC
-# define VG_STACK_PTR guest_SP
-# define VG_FRAME_PTR guest_SP // FIXME: is this right?
+# define VG_STACK_PTR guest_XSP
+# define VG_FRAME_PTR guest_X29 // FIXME: is this right?
#elif defined(VGA_s390x)
# define VG_INSTR_PTR guest_IA
# define VG_STACK_PTR guest_SP
Modified: trunk/drd/drd_load_store.c
==============================================================================
--- trunk/drd/drd_load_store.c (original)
+++ trunk/drd/drd_load_store.c Wed Jan 15 10:25:55 2014
@@ -48,7 +48,7 @@
#elif defined(VGA_arm)
#define STACK_POINTER_OFFSET OFFSET_arm_R13
#elif defined(VGA_arm64)
-#define STACK_POINTER_OFFSET OFFSET_arm64_SP
+#define STACK_POINTER_OFFSET OFFSET_arm64_XSP
#elif defined(VGA_s390x)
#define STACK_POINTER_OFFSET OFFSET_s390x_r15
#elif defined(VGA_mips32)
|