mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
target/i386: fix exceptions for MOV to DR
Use raise_exception_ra (without error code) when raising the illegal opcode operation; raise #GP when setting bits 63:32 of DR6 or DR7. Move helper_get_dr to sysemu/ since it is a privileged instruction that is not needed on user-mode emulators. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
acf23ffb58
commit
533883fd7e
7 changed files with 35 additions and 45 deletions
|
@ -206,6 +206,7 @@ STUB_HELPER(outw, TCGv_env env, TCGv_i32 port, TCGv_i32 val)
|
|||
STUB_HELPER(outl, TCGv_env env, TCGv_i32 port, TCGv_i32 val)
|
||||
STUB_HELPER(rdmsr, TCGv_env env)
|
||||
STUB_HELPER(read_crN, TCGv ret, TCGv_env env, TCGv_i32 reg)
|
||||
STUB_HELPER(get_dr, TCGv ret, TCGv_env env, TCGv_i32 reg)
|
||||
STUB_HELPER(set_dr, TCGv_env env, TCGv_i32 reg, TCGv val)
|
||||
STUB_HELPER(stgi, TCGv_env env)
|
||||
STUB_HELPER(svm_check_intercept, TCGv_env env, TCGv_i32 type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue