diff mbox series

[v2,22/50] target/i386: Reduce DisasContext.prefix to uint8_t

Message ID 20210514151342.384376-23-richard.henderson@linaro.org
State Superseded
Headers show
Series target/i386 translate cleanups | expand

Commit Message

Richard Henderson May 14, 2021, 3:13 p.m. UTC
The highest bit in this set is 0x40 (PREFIX_REX).

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/i386/tcg/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.1

Comments

Paolo Bonzini May 18, 2021, 9:31 a.m. UTC | #1
On 14/05/21 17:13, Richard Henderson wrote:
> The highest bit in this set is 0x40 (PREFIX_REX).

> 

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>   target/i386/tcg/translate.c | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c

> index 44a28858aa..61c0573c2f 100644

> --- a/target/i386/tcg/translate.c

> +++ b/target/i386/tcg/translate.c

> @@ -78,7 +78,7 @@ typedef struct DisasContext {

>   

>       /* current insn context */

>       int8_t override; /* -1 if no override, else R_CS, R_DS, etc */

> -    int prefix;

> +    uint8_t prefix;

>       MemOp aflag;

>       MemOp dflag;

>       target_ulong pc_start;

> 


Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
diff mbox series

Patch

diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index 44a28858aa..61c0573c2f 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -78,7 +78,7 @@  typedef struct DisasContext {
 
     /* current insn context */
     int8_t override; /* -1 if no override, else R_CS, R_DS, etc */
-    int prefix;
+    uint8_t prefix;
     MemOp aflag;
     MemOp dflag;
     target_ulong pc_start;