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
This commit is contained in:
blueswir1 2007-05-17 19:30:10 +00:00
parent 4edebb0e8e
commit 6c36d3fa86
5 changed files with 126 additions and 23 deletions

10
exec.c
View file

@ -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
}