From bc2653195a98ffdf44372c5ea655d5c05ea714b8 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 3 Jul 2011 08:19:42 +0000 Subject: Sparc: avoid AREG0 for raise_exception and helper_debug Make raise_exception() and helper_debug() take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- target-sparc/helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target-sparc/helper.h') diff --git a/target-sparc/helper.h b/target-sparc/helper.h index 2d36af3a31..a452666480 100644 --- a/target-sparc/helper.h +++ b/target-sparc/helper.h @@ -32,7 +32,7 @@ DEF_HELPER_1(tick_get_count, i64, ptr) DEF_HELPER_2(tick_set_limit, void, ptr, i64) #endif DEF_HELPER_2(check_align, void, tl, i32) -DEF_HELPER_0(debug, void) +DEF_HELPER_1(debug, void, env) DEF_HELPER_0(save, void) DEF_HELPER_0(restore, void) DEF_HELPER_2(udiv, tl, tl, tl) @@ -83,7 +83,7 @@ DEF_HELPER_0(fcmpeq_fcc1, void) DEF_HELPER_0(fcmpeq_fcc2, void) DEF_HELPER_0(fcmpeq_fcc3, void) #endif -DEF_HELPER_1(raise_exception, void, int) +DEF_HELPER_2(raise_exception, void, env, int) DEF_HELPER_0(shutdown, void) #define F_HELPER_0_0(name) DEF_HELPER_0(f ## name, void) #define F_HELPER_DQ_0_0(name) \ -- cgit v1.2.1