[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RFC PATCH 07/11] target/arm: add LOG_UNIMP messages to arm-s
From: |
Alex Bennée |
Subject: |
[Qemu-arm] [RFC PATCH 07/11] target/arm: add LOG_UNIMP messages to arm-semi |
Date: |
Tue, 14 May 2019 16:52:57 +0100 |
Clean-up our unimplemented bits with a proper message.
Signed-off-by: Alex Bennée <address@hidden>
---
target/arm/arm-semi.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/arm/arm-semi.c b/target/arm/arm-semi.c
index 253c66b172a..a3bbef18ef7 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"
@@ -366,7 +367,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);
@@ -400,7 +401,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);
--
2.20.1
- [Qemu-arm] [RFC PATCH 00/11] semihosting cleanup and re-factor, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 02/11] semihosting: introduce CONFIG_SEMIHOSTING, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 03/11] semihosting: implement a semihosting console, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 04/11] semihosting: enable chardev backed output for console, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 07/11] target/arm: add LOG_UNIMP messages to arm-semi,
Alex Bennée <=
- [Qemu-arm] [RFC PATCH 09/11] target/mips: only build mips-semi for softmmu, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 10/11] target/mips: convert UHI_plog to use common semihosting code, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 01/11] semihosting: move semihosting configuration into its own directory, Alex Bennée, 2019/05/14
- [Qemu-arm] [RFC PATCH 06/11] target/arm: use the common interface for WRITE0/WRITEC in arm-semi, Alex Bennée, 2019/05/14