[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 18/21] target/i386: REPZ and REPNZ are mutually exclusive
From: |
Paolo Bonzini |
Subject: |
[PULL 18/21] target/i386: REPZ and REPNZ are mutually exclusive |
Date: |
Mon, 19 Sep 2022 19:34:46 +0200 |
The later prefix wins if both are present, make it show in s->prefix too.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/i386/tcg/translate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index 5f31a59fb8..eaa56b0f48 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -4733,9 +4733,11 @@ static target_ulong disas_insn(DisasContext *s, CPUState
*cpu)
switch (b) {
case 0xf3:
prefixes |= PREFIX_REPZ;
+ prefixes &= ~PREFIX_REPNZ;
goto next_byte;
case 0xf2:
prefixes |= PREFIX_REPNZ;
+ prefixes &= ~PREFIX_REPZ;
goto next_byte;
case 0xf0:
prefixes |= PREFIX_LOCK;
--
2.37.2
- [PULL 15/21] audio: add help option for -audio and -audiodev, (continued)
- [PULL 15/21] audio: add help option for -audio and -audiodev, Paolo Bonzini, 2022/09/19
- [PULL 16/21] target/i386: correctly mask SSE4a bit indices in register operands, Paolo Bonzini, 2022/09/19
- [PULL 14/21] tests/tcg: remove old SSE tests, Paolo Bonzini, 2022/09/19
- [PULL 20/21] build: remove extra parentheses causing missing rebuilds, Paolo Bonzini, 2022/09/19
- [PULL 11/21] tests/tcg: i386: fix typos in 3DNow! instructions, Paolo Bonzini, 2022/09/19
- [PULL 12/21] tests/tcg: i386: add MMX and 3DNow! tests, Paolo Bonzini, 2022/09/19
- [PULL 19/21] target/i386: introduce insn_get_addr, Paolo Bonzini, 2022/09/19
- [PULL 21/21] qboot: update to latest submodule, Paolo Bonzini, 2022/09/19
- [PULL 13/21] tests/tcg: refine MMX support in SSE tests, Paolo Bonzini, 2022/09/19
- [PULL 17/21] target/i386: fix INSERTQ implementation, Paolo Bonzini, 2022/09/19
- [PULL 18/21] target/i386: REPZ and REPNZ are mutually exclusive,
Paolo Bonzini <=
- Re: [PULL 00/21] Misc patches for 2022-09-19, Stefan Hajnoczi, 2022/09/21