Add unassigned memory debugging code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2248 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
179e32bbcc
commit
67d3b957e6
7
exec.c
7
exec.c
@ -41,6 +41,7 @@
|
|||||||
//#define DEBUG_TB_INVALIDATE
|
//#define DEBUG_TB_INVALIDATE
|
||||||
//#define DEBUG_FLUSH
|
//#define DEBUG_FLUSH
|
||||||
//#define DEBUG_TLB
|
//#define DEBUG_TLB
|
||||||
|
//#define DEBUG_UNASSIGNED
|
||||||
|
|
||||||
/* make various TB consistency checks */
|
/* make various TB consistency checks */
|
||||||
//#define DEBUG_TB_CHECK
|
//#define DEBUG_TB_CHECK
|
||||||
@ -1813,11 +1814,17 @@ uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr)
|
|||||||
|
|
||||||
static uint32_t unassigned_mem_readb(void *opaque, target_phys_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);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
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);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static CPUReadMemoryFunc *unassigned_mem_read[3] = {
|
static CPUReadMemoryFunc *unassigned_mem_read[3] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user