diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-16 08:56:52 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-16 08:56:52 +0000 |
commit | 0a032cbec69c268272a118f19e64c16e73d56cc0 (patch) | |
tree | c2e2f0a67ac42a5729aaa50b73aebf5dca13f00a /hw/ppc_prep.c | |
parent | dd37a5e4d7ebc4e698f4c69ad2a5ee922824703f (diff) |
Add reset callbacks for PowerPC CPU.
Move cpu_ppc_init, cpu_ppc_close, cpu_ppc_reset and ppc_tlb_invalidate
into helper.c as they are to be called from outside of the translated code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2682 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r-- | hw/ppc_prep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 8fce9cc6cd..2f10338b13 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -531,13 +531,14 @@ static void ppc_prep_init (int ram_size, int vga_ram_size, int boot_device, sysctrl = qemu_mallocz(sizeof(sysctrl_t)); if (sysctrl == NULL) - return; + return; linux_boot = (kernel_filename != NULL); - + /* init CPUs */ env = cpu_init(); + qemu_register_reset(&cpu_ppc_reset, env); register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); /* Default CPU is a 604 */ |