diff --git a/bochs/cpu/fetchdecode.cc b/bochs/cpu/fetchdecode.cc index 76493dff3..38653b62c 100644 --- a/bochs/cpu/fetchdecode.cc +++ b/bochs/cpu/fetchdecode.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: fetchdecode.cc,v 1.232 2009-11-05 21:07:18 sshwarts Exp $ +// $Id: fetchdecode.cc,v 1.233 2009-11-06 18:19:01 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -2528,7 +2528,7 @@ fetch_b1: return(0); case 0xf2: // REPNE/REPNZ case 0xf3: // REP/REPE/REPZ - sse_prefix = b1 & 0xf; + sse_prefix = b1 & 3; i->setRepUsed(b1 & 3); if (ilen < remain) { goto fetch_b1; diff --git a/bochs/cpu/fetchdecode64.cc b/bochs/cpu/fetchdecode64.cc index 24c00dcd4..6a6f68eb9 100644 --- a/bochs/cpu/fetchdecode64.cc +++ b/bochs/cpu/fetchdecode64.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: fetchdecode64.cc,v 1.234 2009-11-05 21:07:18 sshwarts Exp $ +// $Id: fetchdecode64.cc,v 1.235 2009-11-06 18:19:01 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -3417,7 +3417,7 @@ fetch_b1: case 0xf2: // REPNE/REPNZ case 0xf3: // REP/REPE/REPZ rex_prefix = 0; - sse_prefix = b1 & 0xf; + sse_prefix = b1 & 3; i->setRepUsed(b1 & 3); if (ilen < remain) { goto fetch_b1;