aboutsummaryrefslogtreecommitdiff
path: root/target/i386/helper.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-07-06 17:53:29 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-07-09 18:21:34 +0200
commit533883fd7ec18a99b28815583bce6f78b2c9643b (patch)
tree3031faf5dbf97c914e1b05f7c1d40b3cb5d792fd /target/i386/helper.h
parentacf23ffb58322179841cb68ff0fd595fede59618 (diff)
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>
Diffstat (limited to 'target/i386/helper.h')
-rw-r--r--target/i386/helper.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/i386/helper.h b/target/i386/helper.h
index f3d8c3f949..574ff75615 100644
--- a/target/i386/helper.h
+++ b/target/i386/helper.h
@@ -46,9 +46,8 @@ DEF_HELPER_1(clts, void, env)
#ifndef CONFIG_USER_ONLY
DEF_HELPER_FLAGS_3(set_dr, TCG_CALL_NO_WG, void, env, int, tl)
-#endif /* !CONFIG_USER_ONLY */
-
DEF_HELPER_FLAGS_2(get_dr, TCG_CALL_NO_WG, tl, env, int)
+#endif /* !CONFIG_USER_ONLY */
DEF_HELPER_1(sysenter, void, env)
DEF_HELPER_2(sysexit, void, env, int)