]> xenbits.xensource.com Git - qemu-xen.git/commit
target/i386: Assert !VM86 for x86_64 user-only
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 14 May 2021 15:13:01 +0000 (10:13 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 May 2021 17:15:46 +0000 (12:15 -0500)
commitf8a35846d5479fb076c12c8c84c010cb479bdc49
treec6c69debdc9859122ab8f57b75b5e55c9894e79b
parent0ab011cca08651349172187d574e2fb1316283ef
target/i386: Assert !VM86 for x86_64 user-only

For i386-linux-user, we can enter vm86 mode via the vm86(2) syscall.
That syscall explicitly returns to 32-bit mode, and the syscall does
not exist for a 64-bit x86_64 executable.

Since we're adding an accessor macro, pull the value directly out of
flags otherwise.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210514151342.384376-10-richard.henderson@linaro.org>
target/i386/tcg/translate.c