summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-20 14:57:34 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-20 14:57:34 -0700
commitec5f66190e7169acf76edd715ccda309806daf87 (patch)
tree8916ad04b2d46f4981ee1aea29afe36945d89a9f /src
parent5d882984d197e8edc59678d6699c9e205cd77a89 (diff)
downloadgem5-ec5f66190e7169acf76edd715ccda309806daf87.tar.xz
Fix code that computes displacement size.
--HG-- extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/predecoder.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/x86/predecoder.cc b/src/arch/x86/predecoder.cc
index 6052d8392..b6c488e45 100644
--- a/src/arch/x86/predecoder.cc
+++ b/src/arch/x86/predecoder.cc
@@ -305,8 +305,7 @@ namespace X86ISA
displacementSize = 0;
} else {
//figure out 32/64 bit displacement size
- if(modRM.mod == 0 && (modRM.rm == 4 || modRM.rm == 5)
- || modRM.mod == 2)
+ if(modRM.mod == 0 && modRM.rm == 5 || modRM.mod == 2)
displacementSize = 4;
else if(modRM.mod == 1)
displacementSize = 1;