summaryrefslogtreecommitdiffstats
path: root/target/arm/arm-semi.c
diff options
context:
space:
mode:
authorAlex Bennée2019-05-14 13:15:38 +0200
committerAlex Bennée2019-05-28 11:28:51 +0200
commita131795f4c696083708767a2cb7e1168f73a1690 (patch)
tree476a45afd0f0dcb62b295f3a9685099b6106d535 /target/arm/arm-semi.c
parenttarget/arm: use the common interface for WRITE0/WRITEC in arm-semi (diff)
downloadqemu-a131795f4c696083708767a2cb7e1168f73a1690.tar.gz
qemu-a131795f4c696083708767a2cb7e1168f73a1690.tar.xz
qemu-a131795f4c696083708767a2cb7e1168f73a1690.zip
target/arm: add LOG_UNIMP messages to arm-semi
Clean-up our unimplemented bits with a proper message. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/arm-semi.c')
-rw-r--r--target/arm/arm-semi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/arm/arm-semi.c b/target/arm/arm-semi.c
index 384b01124e..86e6ec48c2 100644
--- a/target/arm/arm-semi.c
+++ b/target/arm/arm-semi.c
@@ -28,6 +28,7 @@
#include "cpu.h"
#include "hw/semihosting/semihost.h"
#include "hw/semihosting/console.h"
+#include "qemu/log.h"
#ifdef CONFIG_USER_ONLY
#include "qemu.h"
@@ -363,7 +364,7 @@ target_ulong do_arm_semihosting(CPUARMState *env)
return len - ret;
}
case TARGET_SYS_READC:
- /* XXX: Read from debug console. Not implemented. */
+ qemu_log_mask(LOG_UNIMP, "%s: SYS_READC not implemented", __func__);
return 0;
case TARGET_SYS_ISTTY:
GET_ARG(0);
@@ -397,7 +398,7 @@ target_ulong do_arm_semihosting(CPUARMState *env)
return buf.st_size;
}
case TARGET_SYS_TMPNAM:
- /* XXX: Not implemented. */
+ qemu_log_mask(LOG_UNIMP, "%s: SYS_TMPNAM not implemented", __func__);
return -1;
case TARGET_SYS_REMOVE:
GET_ARG(0);