GENOFFSET(ARM64,arm64,X6);
GENOFFSET(ARM64,arm64,X7);
GENOFFSET(ARM64,arm64,X8);
- GENOFFSET(ARM64,arm64,SP);
+ GENOFFSET(ARM64,arm64,XSP);
GENOFFSET(ARM64,arm64,PC);
// s390x
Bool guest_arm64_state_requires_precise_mem_exns ( Int minoff,
Int maxoff)
{
- Int sp_min = offsetof(VexGuestARM64State, guest_SP);
- Int sp_max = sp_min + 8 - 1;
- Int pc_min = offsetof(VexGuestARM64State, guest_PC);
- Int pc_max = pc_min + 8 - 1;
+ Int xsp_min = offsetof(VexGuestARM64State, guest_XSP);
+ Int xsp_max = xsp_min + 8 - 1;
+ Int pc_min = offsetof(VexGuestARM64State, guest_PC);
+ Int pc_max = pc_min + 8 - 1;
- if (maxoff < sp_min || minoff > sp_max) {
- /* no overlap with sp */
+ if (maxoff < xsp_min || minoff > xsp_max) {
+ /* no overlap with xsp */
if (vex_control.iropt_register_updates == VexRegUpdSpAtMemAccess)
return False; // We only need to check stack pointer.
} else {
.total_sizeB = sizeof(VexGuestARM64State),
/* Describe the stack pointer. */
- .offset_SP = offsetof(VexGuestARM64State,guest_SP),
+ .offset_SP = offsetof(VexGuestARM64State,guest_XSP),
.sizeof_SP = 8,
/* Describe the instruction pointer. */
#define OFFB_X29 offsetof(VexGuestARM64State,guest_X29)
#define OFFB_X30 offsetof(VexGuestARM64State,guest_X30)
-#define OFFB_SP offsetof(VexGuestARM64State,guest_SP)
+#define OFFB_XSP offsetof(VexGuestARM64State,guest_XSP)
#define OFFB_PC offsetof(VexGuestARM64State,guest_PC)
#define OFFB_CC_OP offsetof(VexGuestARM64State,guest_CC_OP)
static Int offsetIReg64orSP ( UInt iregNo )
{
- return iregNo == 31 ? OFFB_SP : offsetIReg64(iregNo);
+ return iregNo == 31 ? OFFB_XSP : offsetIReg64(iregNo);
}
static const HChar* nameIReg64orZR ( UInt iregNo )
Bool
guest_s390x_state_requires_precise_mem_exns(Int minoff, Int maxoff)
{
- Int lr_min = S390X_GUEST_OFFSET(guest_s390_LR);
+ Int lr_min = S390X_GUEST_OFFSET(guest_LR);
Int lr_max = lr_min + 8 - 1;
- Int sp_min = S390X_GUEST_OFFSET(guest_s390_SP);
+ Int sp_min = S390X_GUEST_OFFSET(guest_SP);
Int sp_max = sp_min + 8 - 1;
- Int fp_min = S390X_GUEST_OFFSET(guest_s390_FP);
+ Int fp_min = S390X_GUEST_OFFSET(guest_FP);
Int fp_max = fp_min + 8 - 1;
Int ia_min = S390X_GUEST_OFFSET(guest_IA);
Int ia_max = ia_min + 8 - 1;
.total_sizeB = sizeof(VexGuestS390XState),
/* Describe the stack pointer. */
- .offset_SP = S390X_GUEST_OFFSET(guest_s390_SP),
+ .offset_SP = S390X_GUEST_OFFSET(guest_SP),
.sizeof_SP = 8,
/* Describe the frame pointer. */
- .offset_FP = S390X_GUEST_OFFSET(guest_s390_FP),
+ .offset_FP = S390X_GUEST_OFFSET(guest_FP),
.sizeof_FP = 8,
/* Describe the instruction pointer. */
ULong guest_X28;
ULong guest_X29;
ULong guest_X30; /* link register */
- ULong guest_SP;
+ ULong guest_XSP;
ULong guest_PC;
/* 4-word thunk used to calculate N(sign) Z(zero) C(carry,
/*--- Dedicated registers ---*/
/*------------------------------------------------------------*/
-#define guest_s390_LR guest_r14 /* Link register */
-#define guest_s390_SP guest_r15 /* Stack pointer */
-#define guest_s390_FP guest_r11 /* Frame pointer */
+#define guest_LR guest_r14 /* Link register */
+#define guest_SP guest_r15 /* Stack pointer */
+#define guest_FP guest_r11 /* Frame pointer */
/*---------------------------------------------------------------*/
/*--- end libvex_guest_s390x.h ---*/