From 68f96846fea5ec8bab29a85a555a5a6e5653ce23 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sun, 26 Jun 2011 19:39:48 +0000 Subject: [PATCH] no need to define 3b opcodes on < 80x686 --- bochs/cpu/fetchdecode.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bochs/cpu/fetchdecode.cc b/bochs/cpu/fetchdecode.cc index 67ce88c94..1ebf7a5fa 100644 --- a/bochs/cpu/fetchdecode.cc +++ b/bochs/cpu/fetchdecode.cc @@ -1424,6 +1424,7 @@ fetch_b1: if (has_modrm) { +#if BX_CPU_LEVEL >= 6 unsigned b3 = 0; // handle 3-byte escape if ((attr & BxGroupX) == Bx3ByteOp) { @@ -1434,6 +1435,7 @@ fetch_b1: else return(-1); } +#endif // opcode requires modrm byte if (remain != 0) { @@ -1646,9 +1648,11 @@ modrm_done: OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[0]); break; #endif +#if BX_CPU_LEVEL >= 6 case Bx3ByteOp: OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[b3]); break; +#endif case BxOSizeGrp: OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[os_32]); break;