From: Gabe Black Date: Sun, 22 Jul 2007 02:23:03 +0000 (+0000) Subject: Fixed displacement size bug. X-Git-Tag: m5_2.0_beta4~297^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bff4f765f53b371139991e531ab00a0c650410e5;p=gem5.git Fixed displacement size bug. --HG-- extra : convert_revision : c39249ef598c1bd555098d688381dc62541a07c0 --- diff --git a/src/arch/x86/predecoder.cc b/src/arch/x86/predecoder.cc index b6c488e45..2c997f34b 100644 --- a/src/arch/x86/predecoder.cc +++ b/src/arch/x86/predecoder.cc @@ -340,6 +340,8 @@ namespace X86ISA emi.sib = nextByte; DPRINTF(Predecoder, "Found SIB byte %#x.\n", nextByte); consumeByte(); + if(emi.modRM.mod == 0 && emi.sib.base == 5) + displacementSize = 4; if(displacementSize) { nextState = DisplacementState; } else if(immediateSize) {