Commit 67d3b957e69aeb9ab7bfc3d6e05f342cb452b1d7
1 parent
179e32bb
Add unassigned memory debugging code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2248 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
0 deletions
exec.c
| ... | ... | @@ -41,6 +41,7 @@ |
| 41 | 41 | //#define DEBUG_TB_INVALIDATE |
| 42 | 42 | //#define DEBUG_FLUSH |
| 43 | 43 | //#define DEBUG_TLB |
| 44 | +//#define DEBUG_UNASSIGNED | |
| 44 | 45 | |
| 45 | 46 | /* make various TB consistency checks */ |
| 46 | 47 | //#define DEBUG_TB_CHECK |
| ... | ... | @@ -1813,11 +1814,17 @@ uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr) |
| 1813 | 1814 | |
| 1814 | 1815 | static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) |
| 1815 | 1816 | { |
| 1817 | +#ifdef DEBUG_UNASSIGNED | |
| 1818 | + printf("Unassigned mem read 0x%08x\n", (int)addr); | |
| 1819 | +#endif | |
| 1816 | 1820 | return 0; |
| 1817 | 1821 | } |
| 1818 | 1822 | |
| 1819 | 1823 | static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) |
| 1820 | 1824 | { |
| 1825 | +#ifdef DEBUG_UNASSIGNED | |
| 1826 | + printf("Unassigned mem write 0x%08x = 0x%x\n", (int)addr, val); | |
| 1827 | +#endif | |
| 1821 | 1828 | } |
| 1822 | 1829 | |
| 1823 | 1830 | static CPUReadMemoryFunc *unassigned_mem_read[3] = { | ... | ... |