]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/emulate: stop overloading decode->op[N].ptr
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 2 May 2025 20:21:42 +0000 (22:21 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 May 2025 15:48:32 +0000 (17:48 +0200)
commit77a2dba45cc9a1be7fec6ab88f43d2fa18af52a3
tree757705a4ceddb1b5aa75ddcc12b55abee14ffc9a
parentad441b8b7913a26b18edbc076c74ca0cdbfa4ee5
target/i386/emulate: stop overloading decode->op[N].ptr

decode->op[N].ptr can contain either a host pointer (!) in CPUState
or a guest virtual address.  Pass the whole struct to read_val_ext
and write_val_ext, so that it can decide the contents based on the
operand type.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/emulate/x86_decode.c
target/i386/emulate/x86_decode.h
target/i386/emulate/x86_emu.c
target/i386/emulate/x86_emu.h