From ec5f66190e7169acf76edd715ccda309806daf87 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 20 Jul 2007 14:57:34 -0700 Subject: [PATCH] Fix code that computes displacement size. --HG-- extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb --- src/arch/x86/predecoder.cc | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.30.2