From d0052339236072bbf08c1d600c0906126b1ab258 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 15 Sep 2015 11:45:13 -0700 Subject: target-i386: Check CR4[DE] for processing DR4/DR5 Introduce helper_get_dr so that we don't have to put CR4[DE] into the scarce HFLAGS resource. At the same time, rename helper_movl_drN_T0 to helper_set_dr and set the helper flags. Signed-off-by: Richard Henderson Signed-off-by: Eduardo Habkost --- target-i386/helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target-i386/helper.h') diff --git a/target-i386/helper.h b/target-i386/helper.h index e9858c04e7..ecfcfd1a97 100644 --- a/target-i386/helper.h +++ b/target-i386/helper.h @@ -40,7 +40,8 @@ DEF_HELPER_2(read_crN, tl, env, int) DEF_HELPER_3(write_crN, void, env, int, tl) DEF_HELPER_2(lmsw, void, env, tl) DEF_HELPER_1(clts, void, env) -DEF_HELPER_3(movl_drN_T0, void, env, int, tl) +DEF_HELPER_FLAGS_3(set_dr, TCG_CALL_NO_WG, void, env, int, tl) +DEF_HELPER_FLAGS_2(get_dr, TCG_CALL_NO_WG, tl, env, int) DEF_HELPER_2(invlpg, void, env, tl) DEF_HELPER_4(enter_level, void, env, int, int, tl) -- cgit v1.2.1