diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-08 02:35:15 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-08 02:35:15 +0100 |
commit | a195e84918f3d6a3857bcdc3612ad1a048f4f154 (patch) | |
tree | c4ed47028dee4949cc7eace9760a20d1759406e2 /hw/mcf5208.c | |
parent | f3d9958a1a0633e1cad045968652397fee137845 (diff) | |
download | qemu-a195e84918f3d6a3857bcdc3612ad1a048f4f154.tar.gz qemu-a195e84918f3d6a3857bcdc3612ad1a048f4f154.tar.bz2 qemu-a195e84918f3d6a3857bcdc3612ad1a048f4f154.zip |
Replace cpu_abort with hw_error
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/mcf5208.c')
-rw-r--r-- | hw/mcf5208.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hw/mcf5208.c b/hw/mcf5208.c index 5404dba79c..f22150a311 100644 --- a/hw/mcf5208.c +++ b/hw/mcf5208.c @@ -89,8 +89,7 @@ static void m5208_timer_write(void *opaque, target_phys_addr_t offset, case 4: break; default: - cpu_abort(cpu_single_env, "m5208_timer_write: Bad offset 0x%x\n", - (int)offset); + hw_error("m5208_timer_write: Bad offset 0x%x\n", (int)offset); break; } m5208_timer_update(s); @@ -114,8 +113,7 @@ static uint32_t m5208_timer_read(void *opaque, target_phys_addr_t addr) case 4: return ptimer_get_count(s->timer); default: - cpu_abort(cpu_single_env, "m5208_timer_read: Bad offset 0x%x\n", - (int)addr); + hw_error("m5208_timer_read: Bad offset 0x%x\n", (int)addr); return 0; } } @@ -148,8 +146,7 @@ static uint32_t m5208_sys_read(void *opaque, target_phys_addr_t addr) return 0; default: - cpu_abort(cpu_single_env, "m5208_sys_read: Bad offset 0x%x\n", - (int)addr); + hw_error("m5208_sys_read: Bad offset 0x%x\n", (int)addr); return 0; } } @@ -157,8 +154,7 @@ static uint32_t m5208_sys_read(void *opaque, target_phys_addr_t addr) static void m5208_sys_write(void *opaque, target_phys_addr_t addr, uint32_t value) { - cpu_abort(cpu_single_env, "m5208_sys_write: Bad offset 0x%x\n", - (int)addr); + hw_error("m5208_sys_write: Bad offset 0x%x\n", (int)addr); } static CPUReadMemoryFunc *m5208_sys_readfn[] = { |