diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-10 12:40:24 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-16 18:18:24 +0200 |
| commit | 3afc6539a84d3d003025c9352a0596dbcb350ff4 (patch) | |
| tree | 85141cbe9a687e7a19845a92500b6ceb332f4a92 /hw/core/irq.c | |
| parent | 340627ec14968d64cfa3dd12d0e998639f227c49 (diff) | |
| download | focaccia-qemu-3afc6539a84d3d003025c9352a0596dbcb350ff4.tar.gz focaccia-qemu-3afc6539a84d3d003025c9352a0596dbcb350ff4.zip | |
target/i386/tcg: fix POP to memory in long mode
In long mode, POP to memory will write a full 64-bit value. However,
the call to gen_writeback() in gen_POP will use MO_32 because the
decoding table is incorrect.
The bug was latent until commit aea49fbb01a ("target/i386: use gen_writeback()
within gen_POP()", 2024-06-08), and then became visible because gen_op_st_v
now receives op->ot instead of the "ot" returned by gen_pop_T0.
Analyzed-by: Clément Chigot <chigot@adacore.com>
Fixes: 5e9e21bcc4d ("target/i386: move 60-BF opcodes to new decoder", 2024-05-07)
Tested-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/irq.c')
0 files changed, 0 insertions, 0 deletions