mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Add a generic Niagara machine
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5329 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c99657d303
commit
e87231d426
4 changed files with 74 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ void register_machines(void)
|
|||
#ifdef TARGET_SPARC64
|
||||
qemu_register_machine(&sun4u_machine);
|
||||
qemu_register_machine(&sun4v_machine);
|
||||
qemu_register_machine(&niagara_machine);
|
||||
#else
|
||||
qemu_register_machine(&ss5_machine);
|
||||
qemu_register_machine(&ss10_machine);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue