diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-07-22 02:23:03 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-07-22 02:23:03 +0000 |
commit | bff4f765f53b371139991e531ab00a0c650410e5 (patch) | |
tree | 5f56f38c65137b4e5abe488cb20b2c70cb151b76 | |
parent | 6a0b712a1ed855b42d1df3c31bae2eb1d52ce131 (diff) | |
download | gem5-bff4f765f53b371139991e531ab00a0c650410e5.tar.xz |
Fixed displacement size bug.
--HG--
extra : convert_revision : c39249ef598c1bd555098d688381dc62541a07c0
-rw-r--r-- | src/arch/x86/predecoder.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |