From 0a032cbec69c268272a118f19e64c16e73d56cc0 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Mon, 16 Apr 2007 08:56:52 +0000 Subject: 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 --- hw/ppc_prep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hw/ppc_prep.c') diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 8fce9cc..2f10338 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 */ -- cgit v1.1