diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-03 11:01:40 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-03 11:01:40 -0700 |
commit | 676dc6d29287e15cb37b367a15a2e7c64f9c9007 (patch) | |
tree | 6339af0073a661fa22bb18c3a129a8ae9dc39f69 /src/arch/x86/predecoder.cc | |
parent | 38c2af17a557e5b7420a2ad15b13316acbde588d (diff) | |
download | gem5-676dc6d29287e15cb37b367a15a2e7c64f9c9007.tar.xz |
X86: Fix segment override prefixes on instructions that use rbp/rsp and a displacement.
Diffstat (limited to 'src/arch/x86/predecoder.cc')
-rw-r--r-- | src/arch/x86/predecoder.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/predecoder.cc b/src/arch/x86/predecoder.cc index 24276f06c..f537f92af 100644 --- a/src/arch/x86/predecoder.cc +++ b/src/arch/x86/predecoder.cc @@ -77,6 +77,7 @@ namespace X86ISA immediateCollected = 0; emi.immediate = 0; emi.displacement = 0; + emi.dispSize = 0; emi.modRM = 0; emi.sib = 0; @@ -383,6 +384,8 @@ namespace X86ISA emiIsReady = true; nextState = ResetState; } + + emi.dispSize = displacementSize; } else nextState = DisplacementState; |