mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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:
parent
cffc581873
commit
2ffd9176b1
5 changed files with 49 additions and 50 deletions
|
@ -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) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue