vex: r3340 - in /trunk: priv/guest_x86_helpers.c pub/libvex_guest_x86.h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

vex: r3340 - in /trunk: priv/guest_x86_helpers.c pub/libvex_guest_x86.h

svn-2
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 <[hidden email]>.

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;
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...