From: Gabe Black Date: Fri, 20 Jul 2007 21:57:34 +0000 (-0700) Subject: Fix code that computes displacement size. X-Git-Tag: m5_2.0_beta4~297^2~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec5f66190e7169acf76edd715ccda309806daf87;p=gem5.git Fix code that computes displacement size. --HG-- extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb --- 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;