aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op_helper.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-07-03 16:01:57 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-10-23 15:09:37 +0000
commit2ffd9176b10caefab5f2bade13b1b54154266b35 (patch)
treecb0c460c8e9bdaf2210d9ed5acc0287e7abc9205 /target-sparc/op_helper.c
parentcffc581873fdb482644acfc4f61d294ad4e81cf0 (diff)
Sparc: avoid AREG0 for lazy condition code helpers
Make lazy condition code helpers take a parameter for CPUState instead of relying on global env. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r--target-sparc/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 33d46a4c04..18a00d4cea 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -372,7 +372,7 @@ void cpu_set_cwp(CPUState *env1, int new_cwp)
static target_ulong get_psr(void)
{
- helper_compute_psr();
+ helper_compute_psr(env);
#if !defined (TARGET_SPARC64)
return env->version | (env->psr & PSR_ICC) |