aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/helper.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-26 19:48:58 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-26 19:48:58 +0000
commite87231d4262e472628e866394f85320829fe4fc5 (patch)
tree011ec34f351ae4ee72f8130163f2868550759004 /target-sparc/helper.c
parentc99657d30329b5c296a5f998f1a05d1d10aa8e31 (diff)
Add a generic Niagara machine
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5329 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r--target-sparc/helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index ab96428388..12070b9246 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -658,13 +658,12 @@ void cpu_reset(CPUSPARCState *env)
#ifdef TARGET_SPARC64
env->pstate = PS_PRIV;
env->hpstate = HS_PRIV;
- env->pc = 0x1fff0000020ULL; // XXX should be different for system_reset
env->tsptr = &env->ts[env->tl & MAXTL_MASK];
#else
- env->pc = 0;
env->mmuregs[0] &= ~(MMU_E | MMU_NF);
env->mmuregs[0] |= env->def->mmu_bm;
#endif
+ env->pc = 0;
env->npc = env->pc + 4;
#endif
}