]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target-sparc/mmu_helper.c
qemu-log: add log category for MMU info
[mirror_qemu.git] / target-sparc / mmu_helper.c
index 61afbcf048cafd58a44e59e9e6559e3c2c2d93c4..2a0c6f0d3de3affa3651046ace3accdd448e97a1 100644 (file)
@@ -213,10 +213,9 @@ int sparc_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
                                       address, rw, mmu_idx, &page_size);
     vaddr = address;
     if (error_code == 0) {
-#ifdef DEBUG_MMU
-        printf("Translate at %" VADDR_PRIx " -> " TARGET_FMT_plx ", vaddr "
-               TARGET_FMT_lx "\n", address, paddr, vaddr);
-#endif
+        qemu_log_mask(CPU_LOG_MMU,
+                "Translate at %" VADDR_PRIx " -> " TARGET_FMT_plx ", vaddr "
+                TARGET_FMT_lx "\n", address, paddr, vaddr);
         tlb_set_page(cs, vaddr, paddr, prot, mmu_idx, page_size);
         return 0;
     }