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>
This commit is contained in:
Blue Swirl 2011-07-03 16:01:57 +00:00
parent cffc581873
commit 2ffd9176b1
5 changed files with 49 additions and 50 deletions

View file

@ -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) |