summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAurelien Jarno2017-05-17 00:48:18 +0200
committerAurelien Jarno2017-05-30 18:28:00 +0200
commit324189babbc0b70d9ce558deb63d33040d002b7a (patch)
treeeeaae16c066579dcad01ffebd5c4c16d828365f7 /target
parentMerge remote-tracking branch 'kwolf/tags/for-upstream' into staging (diff)
downloadqemu-324189babbc0b70d9ce558deb63d33040d002b7a.tar.gz
qemu-324189babbc0b70d9ce558deb63d33040d002b7a.tar.xz
qemu-324189babbc0b70d9ce558deb63d33040d002b7a.zip
target/sh4: log unauthorized accesses using qemu_log_mask
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>
Diffstat (limited to 'target')
-rw-r--r--target/sh4/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sh4/helper.c b/target/sh4/helper.c
index 8f8ce81401..4c024f9529 100644
--- a/target/sh4/helper.c
+++ b/target/sh4/helper.c
@@ -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)