diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-17 19:30:10 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-17 19:30:10 +0000 |
commit | 6c36d3fa860b1dfa55de1e8248be6fffcd876f69 (patch) | |
tree | bb7df0c2a61f9094c1ad1c4d55ea6ce2dd1e8085 /exec.c | |
parent | 4edebb0e8e14a5b934114b5ff74cb86437bb2532 (diff) |
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
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 } |