]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: emulate: Make sure fetch_instruction exist before calling it
authorNguyen Dinh Phi <phind.uet@gmail.com>
Fri, 14 Nov 2025 08:29:15 +0000 (16:29 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2025 08:49:25 +0000 (09:49 +0100)
commit46b06eaeb48d82ec231e9a09ce032ab1d5df8d33
treee7c7b8867ce7895b11e0697411e5d24bd875d0ff
parent799fa30a6e3cfb21d6b46b33d4e8a12cac439ac4
target/i386: emulate: Make sure fetch_instruction exist before calling it

Currently, this function is only available in MSHV. If a different accelerator
is used, and the code jumps to this section, a segfault will occur.
(I ran into this with HVF)

Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Link: https://lore.kernel.org/r/20251114082915.71884-2-phind.uet@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/emulate/x86_decode.c