]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/sh4: log unauthorized accesses using qemu_log_mask
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 16 May 2017 22:48:18 +0000 (00:48 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 30 May 2017 16:28:00 +0000 (18:28 +0200)
qemu_log_mask() is preferred over fprintf() for logging errors.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target/sh4/helper.c

index 8f8ce814010d8189d5ffe4c8037277687c91c913..4c024f95291a2c417f39ecdbf7124241c18fa1ef 100644 (file)
@@ -420,7 +420,7 @@ static int get_physical_address(CPUSH4State * env, target_ulong * physical,
         if (!(env->sr & (1u << SR_MD))
            && (address < 0xe0000000 || address >= 0xe4000000)) {
            /* Unauthorized access in user mode (only store queues are available) */
-           fprintf(stderr, "Unauthorized access\n");
+            qemu_log_mask(LOG_GUEST_ERROR, "Unauthorized access\n");
            if (rw == 0)
                return MMU_DADDR_ERROR_READ;
            else if (rw == 1)