[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-cvs
Subject:    [Bochs-cvs] [12077] trunk/bochs/cpu/fetchdecode64.cc
From:       sshwarts () users ! sourceforge ! net
Date:       2013-12-28 12:57:21
Message-ID: E1VwtSG-0003ws-MZ () sfs-ml-2 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 12077
Author:   sshwarts
Date:     2013-12-28 12:57:21 +0000 (Sat, 28 Dec 2013)
Log Message:
-----------
fixed #UD condition for multi-byte prefix opcodes VEX/EVEX/XOP

Modified Paths:
--------------
    trunk/bochs/cpu/fetchdecode64.cc

Modified: trunk/bochs/cpu/fetchdecode64.cc
===================================================================
--- trunk/bochs/cpu/fetchdecode64.cc	2013-12-28 12:00:19 UTC (rev 12076)
+++ trunk/bochs/cpu/fetchdecode64.cc	2013-12-28 12:57:21 UTC (rev 12077)
@@ -1833,6 +1833,8 @@
     had_vex_xop = b1;
     if (sse_prefix | rex_prefix)
       goto decode_done;
+    if (! protected_mode())
+      goto decode_done;
 
     unsigned vex, vex_opcext = 1;
     if (remain != 0) {
@@ -1886,8 +1888,10 @@
 #if BX_SUPPORT_EVEX
   else if (b1 == 0x62) {
     had_vex_xop = b1;
-    if (sse_prefix || ! protected_mode())
+    if (sse_prefix | rex_prefix)
       goto decode_done;
+    if (! protected_mode())
+      goto decode_done;
 
     Bit32u evex;
     if (remain > 3) {
@@ -1950,6 +1954,8 @@
     had_vex_xop = b1;
     if (sse_prefix | rex_prefix)
       goto decode_done;
+    if (! protected_mode())
+      goto decode_done;
 
     unsigned vex;
     if (remain > 2) {


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic