|
From: <sv...@va...> - 2017-04-03 10:19:21
|
Author: sewardj
Date: Mon Apr 3 11:19:13 2017
New Revision: 3340
Log:
x86 guest: switch descriptor table registers to ULong type so they will take up
consistent amount of space (VEX side). Andrew Dutcher <and...@gm...>.
Modified:
trunk/priv/guest_x86_helpers.c
trunk/pub/libvex_guest_x86.h
Modified: trunk/priv/guest_x86_helpers.c
==============================================================================
--- trunk/priv/guest_x86_helpers.c (original)
+++ trunk/priv/guest_x86_helpers.c Mon Apr 3 11:19:13 2017
@@ -2879,6 +2879,8 @@
vex_state->guest_IP_AT_SYSCALL = 0;
vex_state->padding1 = 0;
+ vex_state->padding2 = 0;
+ vex_state->padding3 = 0;
}
Modified: trunk/pub/libvex_guest_x86.h
==============================================================================
--- trunk/pub/libvex_guest_x86.h (original)
+++ trunk/pub/libvex_guest_x86.h Mon Apr 3 11:19:13 2017
@@ -194,8 +194,8 @@
UShort guest_GS;
UShort guest_SS;
/* LDT/GDT stuff. */
- HWord guest_LDT; /* host addr, a VexGuestX86SegDescr* */
- HWord guest_GDT; /* host addr, a VexGuestX86SegDescr* */
+ ULong guest_LDT; /* host addr, a VexGuestX86SegDescr* */
+ ULong guest_GDT; /* host addr, a VexGuestX86SegDescr* */
/* Emulation notes */
UInt guest_EMNOTE;
@@ -223,6 +223,8 @@
/* Padding to make it have an 16-aligned size */
UInt padding1;
+ UInt padding2;
+ UInt padding3;
}
VexGuestX86State;
|