aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-18 05:03:52 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-18 05:03:52 +0000
commit67d3b957e69aeb9ab7bfc3d6e05f342cb452b1d7 (patch)
tree574479a820ec4c68a5fbe42a9e41bd82a49b614e
parent179e32bbccd0b7ae2fa99e6612d1657c3b8205ae (diff)
Add unassigned memory debugging code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2248 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--exec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 762d6dc4dc..ae2d825da3 100644
--- a/exec.c
+++ b/exec.c
@@ -41,6 +41,7 @@
//#define DEBUG_TB_INVALIDATE
//#define DEBUG_FLUSH
//#define DEBUG_TLB
+//#define DEBUG_UNASSIGNED
/* make various TB consistency checks */
//#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)
{
+#ifdef DEBUG_UNASSIGNED
+ printf("Unassigned mem read 0x%08x\n", (int)addr);
+#endif
return 0;
}
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] = {