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

List:       bochs-cvs
Subject:    [Bochs-cvs] CVS: bochs/cpu fetchdecode.cc, 1.111,
From:       Stanislav Shwartsman <sshwarts () users ! sourceforge ! net>
Date:       2007-10-20 10:56:50
Message-ID: E1IjC0g-0004N6-Nz () sc8-pr-cvs3 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/bochs/bochs/cpu
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16372/cpu

Modified Files:
	fetchdecode.cc fetchdecode64.cc 
Log Message:
Decoding : F2 and F2 prefix could override prefix 66 when determine SSE opcode


Index: fetchdecode.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/cpu/fetchdecode.cc,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- fetchdecode.cc	11 Oct 2007 22:44:17 -0000	1.111
+++ fetchdecode.cc	20 Oct 2007 10:56:43 -0000	1.112
@@ -1543,7 +1543,7 @@
 #define SSE_PREFIX_NONE 0
 #define SSE_PREFIX_66   1
 #define SSE_PREFIX_F2   2
-#define SSE_PREFIX_F3   3      /* only one SSE prefix could be used */
+#define SSE_PREFIX_F3   3
   unsigned sse_prefix = SSE_PREFIX_NONE;
 
   os_32 = is_32 =
@@ -1580,14 +1580,14 @@
         }
         return(0);
       case 0xf2: // REPNE/REPNZ
-        if(!sse_prefix) sse_prefix = SSE_PREFIX_F2;
+        sse_prefix = SSE_PREFIX_F2;
         instruction->setRepUsed(b1 & 3);
         if (ilen < remain) {
           goto fetch_b1;
         }
         return(0);
       case 0xf3: // REP/REPE/REPZ
-        if(!sse_prefix) sse_prefix = SSE_PREFIX_F3;
+        sse_prefix = SSE_PREFIX_F3;
         instruction->setRepUsed(b1 & 3);
         if (ilen < remain) {
           goto fetch_b1;

Index: fetchdecode64.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/cpu/fetchdecode64.cc,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- fetchdecode64.cc	11 Oct 2007 22:44:17 -0000	1.116
+++ fetchdecode64.cc	20 Oct 2007 10:56:44 -0000	1.117
@@ -2157,7 +2157,7 @@
 #define SSE_PREFIX_NONE 0
 #define SSE_PREFIX_66   1
 #define SSE_PREFIX_F2   2
-#define SSE_PREFIX_F3   3      /* only one SSE prefix could be used */
+#define SSE_PREFIX_F3   3
   unsigned sse_prefix = SSE_PREFIX_NONE;
   unsigned rex_prefix = 0;
 
@@ -2216,14 +2216,14 @@
         }
         return(0);
       case 0xf2: // REPNE/REPNZ
-        if(!sse_prefix) sse_prefix = SSE_PREFIX_F2;
+        sse_prefix = SSE_PREFIX_F2;
         instruction->setRepUsed(b1 & 3);
         if (ilen < remain) {
           goto fetch_b1;
         }
         return(0);
       case 0xf3: // REP/REPE/REPZ
-        if(!sse_prefix) sse_prefix = SSE_PREFIX_F3;
+        sse_prefix = SSE_PREFIX_F3;
         instruction->setRepUsed(b1 & 3);
         if (ilen < remain) {
           goto fetch_b1;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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