From 6c36d3fa860b1dfa55de1e8248be6fffcd876f69 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Thu, 17 May 2007 19:30:10 +0000 Subject: Enable faults for unassigned memory accesses and unimplemented ASIs git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2824 c046a42c-6fe2-441c-8c8c-71466251a162 --- exec.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 4261dc06b1..bf2d82b9f4 100644 --- a/exec.c +++ b/exec.c @@ -1957,11 +1957,10 @@ void qemu_ram_free(ram_addr_t addr) static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) { #ifdef DEBUG_UNASSIGNED - printf("Unassigned mem read 0x%08x\n", (int)addr); + printf("Unassigned mem read " TARGET_FMT_lx "\n", addr); #endif #ifdef TARGET_SPARC - // Not enabled yet because of bugs in gdbstub etc. - //raise_exception(TT_DATA_ACCESS); + do_unassigned_access(addr, 0, 0, 0); #endif return 0; } @@ -1969,11 +1968,10 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { #ifdef DEBUG_UNASSIGNED - printf("Unassigned mem write 0x%08x = 0x%x\n", (int)addr, val); + printf("Unassigned mem write " TARGET_FMT_lx " = 0x%x\n", addr, val); #endif #ifdef TARGET_SPARC - // Not enabled yet because of bugs in gdbstub etc. - //raise_exception(TT_DATA_ACCESS); + do_unassigned_access(addr, 1, 0, 0); #endif } -- cgit v1.2.3