From: pbrook Date: Mon, 18 Dec 2006 05:03:52 +0000 (+0000) Subject: Add unassigned memory debugging code. X-Git-Tag: release_0_9_1~1647 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b7babb287e50c617cba8a1d4bdf193547632b3cd;p=qemu-xen-4.6-testing.git Add unassigned memory debugging code. --- diff --git a/exec.c b/exec.c index 762d6dc4d..ae2d825da 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] = {