projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d88298
)
Fix code that computes displacement size.
author
Gabe Black
<gblack@eecs.umich.edu>
Fri, 20 Jul 2007 21:57:34 +0000
(14:57 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Fri, 20 Jul 2007 21:57:34 +0000
(14:57 -0700)
--HG--
extra : convert_revision :
a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb
src/arch/x86/predecoder.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/predecoder.cc
b/src/arch/x86/predecoder.cc
index 6052d839291f84d52636afc9110152b436d90467..b6c488e454e6eeafe977ef61731ba5fdb3334e76 100644
(file)
--- 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;