]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
x86 guest: switch descriptor table registers to ULong type so they will take up
authorJulian Seward <jseward@acm.org>
Mon, 3 Apr 2017 10:19:13 +0000 (10:19 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 3 Apr 2017 10:19:13 +0000 (10:19 +0000)
consistent amount of space (VEX side).  Andrew Dutcher <andrewrdutcher@gmail.com>.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3340

VEX/priv/guest_x86_helpers.c
VEX/pub/libvex_guest_x86.h

index bc5a29eed996be15bd1f0f7c67a81da2545e889a..bbbd433fc7a3086921c5173ecda732c4fae14ef0 100644 (file)
@@ -2879,6 +2879,8 @@ void LibVEX_GuestX86_initialise ( /*OUT*/VexGuestX86State* vex_state )
    vex_state->guest_IP_AT_SYSCALL = 0;
 
    vex_state->padding1 = 0;
+   vex_state->padding2 = 0;
+   vex_state->padding3 = 0;
 }
 
 
index 5c77569c244050e4691a764061952f365b102983..54d54a6e1d17c9e3d148113a91ec9877e295783b 100644 (file)
@@ -194,8 +194,8 @@ typedef
       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 @@ typedef
 
       /* Padding to make it have an 16-aligned size */
       UInt padding1;
+      UInt padding2;
+      UInt padding3;
    }
    VexGuestX86State;