]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.h
target/i386: fix exceptions for MOV to DR
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jul 2021 15:53:29 +0000 (17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jul 2021 16:21:34 +0000 (18:21 +0200)
commit533883fd7ec18a99b28815583bce6f78b2c9643b
tree3031faf5dbf97c914e1b05f7c1d40b3cb5d792fd
parentacf23ffb58322179841cb68ff0fd595fede59618
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>
target/i386/cpu.h
target/i386/helper.h
target/i386/svm.h
target/i386/tcg/bpt_helper.c
target/i386/tcg/sysemu/bpt_helper.c
target/i386/tcg/sysemu/svm_helper.c
target/i386/tcg/translate.c