projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e8659e
)
Sparc32/64: Fix user emulator breakage
author
Blue Swirl
<blauwirbel@gmail.com>
Tue, 18 Aug 2009 18:04:38 +0000
(18:04 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Tue, 18 Aug 2009 18:04:38 +0000
(18:04 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/helper.c
patch
|
blob
|
history
diff --git
a/target-sparc/helper.c
b/target-sparc/helper.c
index
31b61bc
..
920432c
100644
(file)
--- a/
target-sparc/helper.c
+++ b/
target-sparc/helper.c
@@
-684,6
+684,7
@@
void cpu_reset(CPUSPARCState *env)
env->wim = 1;
#endif
env->regwptr = env->regbase + (env->cwp * 16);
+ CC_OP = CC_OP_FLAGS;
#if defined(CONFIG_USER_ONLY)
#ifdef TARGET_SPARC64
env->cleanwin = env->nwindows - 2;
@@
-697,7
+698,6
@@
void cpu_reset(CPUSPARCState *env)
#endif
env->psrs = 1;
env->psrps = 1;
- CC_OP = CC_OP_FLAGS;
#ifdef TARGET_SPARC64
env->pstate = PS_PRIV|PS_RED|PS_PEF|PS_AG;
env->hpstate = HS_PRIV;