From 493d1e33b40900d22a4b1d5f431a4f922d0fca41 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 10 Apr 2009 18:57:59 -0400 Subject: [PATCH] I need to allocate some mem for the cpu regs. --- qemu/hw/mc1322x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/hw/mc1322x.c b/qemu/hw/mc1322x.c index 98e61b80a..db8eb57da 100644 --- a/qemu/hw/mc1322x.c +++ b/qemu/hw/mc1322x.c @@ -32,13 +32,13 @@ struct mc1322x_state_s *mc1322x_init(void) s->env); /* SDRAM & Internal Memory Storage */ + /* should probably allocate memory for all the cpu registers... I think that is where the emulation might be bombing */ cpu_register_physical_memory(MC1322X_ROMBASE, MC1322X_ROMSIZE, qemu_ram_alloc(MC1322X_ROMSIZE) | IO_MEM_RAM); cpu_register_physical_memory(MC1322X_RAMBASE, MC1322X_RAMSIZE, qemu_ram_alloc(MC1322X_RAMSIZE) | IO_MEM_RAM); index = drive_get_index(IF_MTD, 0, 0); - cpu_register_physical_memory(MC1322X_ROMBASE, MC1322X_ROMSIZE,0); if(0