From bece19e6a69b158893abbf56a6cac25eb25d9a32 Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 21 Apr 2022 02:35:09 -0700 Subject: just a bit more code motion that seemed to help things sometimes --- src/long_mode/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index d426b2f..8ce4535 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5606,8 +5606,8 @@ pub(self) fn read_E< T: Reader<::Address, ::Word>, S: DescriptionSink, >(words: &mut T, instr: &mut Instruction, modrm: u8, width: u8, sink: &mut S) -> Result { - let bank = width_to_gp_reg_bank(width, instr.prefixes.rex_unchecked().present()); if modrm >= 0b11000000 { + let bank = width_to_gp_reg_bank(width, instr.prefixes.rex_unchecked().present()); read_modrm_reg(instr, words, modrm, bank, sink) } else { read_M(words, instr, modrm, sink) -- cgit v1.1