aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2022-04-21 02:35:09 -0700
committeriximeow <me@iximeow.net>2022-05-30 11:18:21 -0700
commitbece19e6a69b158893abbf56a6cac25eb25d9a32 (patch)
tree03ab4ddf6ca518062f2fba2ecf7e9c8a6cdf3928
parentf338c74656f6eef8b3080fa9f249b1cb733fd1a9 (diff)
just a bit more code motion that seemed to help things sometimes
-rw-r--r--src/long_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<<Arch as yaxpeax_arch::Arch>::Address, <Arch as yaxpeax_arch::Arch>::Word>,
S: DescriptionSink<FieldDescription>,
>(words: &mut T, instr: &mut Instruction, modrm: u8, width: u8, sink: &mut S) -> Result<OperandSpec, DecodeError> {
- 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)