From 5c8e9264d1696d515434f290fd15204f9aaf9fb3 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 19 Apr 2019 17:07:26 +0000 Subject: [PATCH] stop storing raw modrm value, as it isn't used any more. Should save an instruction on each get_modrm call. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4208 --- src/cpu/core_dynrec/decoder_basic.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpu/core_dynrec/decoder_basic.h b/src/cpu/core_dynrec/decoder_basic.h index e466e96b..c8e2a8ef 100644 --- a/src/cpu/core_dynrec/decoder_basic.h +++ b/src/cpu/core_dynrec/decoder_basic.h @@ -120,7 +120,7 @@ static struct DynDecode { // modrm state of the current instruction (if used) struct { - Bitu val; +// Bitu val; Bitu mod; Bitu rm; Bitu reg; @@ -381,10 +381,10 @@ static bool decode_fetchd_imm(Bitu & val) { // modrm decoding helper static void INLINE dyn_get_modrm(void) { - decode.modrm.val=decode_fetchb(); - decode.modrm.mod=(decode.modrm.val >> 6) & 3; - decode.modrm.reg=(decode.modrm.val >> 3) & 7; - decode.modrm.rm=(decode.modrm.val & 7); + Bitu val=decode_fetchb(); + decode.modrm.mod=(val >> 6) & 3; + decode.modrm.reg=(val >> 3) & 7; + decode.modrm.rm=(val & 7); }