mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
SuperSparc MXCC support (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3397 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
992f48a036
commit
952a328ff5
6 changed files with 160 additions and 21 deletions
|
@ -327,7 +327,7 @@ static void *sun4m_hw_init(const struct hwdef *hwdef, int RAM_size,
|
|||
|
||||
for(i = 0; i < smp_cpus; i++) {
|
||||
env = cpu_init();
|
||||
cpu_sparc_register(env, def);
|
||||
cpu_sparc_register(env, def, i);
|
||||
envs[i] = env;
|
||||
if (i == 0) {
|
||||
qemu_register_reset(main_cpu_reset, env);
|
||||
|
|
|
@ -358,7 +358,7 @@ static void sun4u_init(int ram_size, int vga_ram_size, int boot_device,
|
|||
exit(1);
|
||||
}
|
||||
env = cpu_init();
|
||||
cpu_sparc_register(env, def);
|
||||
cpu_sparc_register(env, def, 0);
|
||||
bh = qemu_bh_new(tick_irq, env);
|
||||
env->tick = ptimer_init(bh);
|
||||
ptimer_set_period(env->tick, 1ULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue