mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
0dc077212f
commit
a131795f4c
|
@ -28,6 +28,7 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "hw/semihosting/semihost.h"
|
#include "hw/semihosting/semihost.h"
|
||||||
#include "hw/semihosting/console.h"
|
#include "hw/semihosting/console.h"
|
||||||
|
#include "qemu/log.h"
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
#include "qemu.h"
|
#include "qemu.h"
|
||||||
|
|
||||||
|
@ -363,7 +364,7 @@ target_ulong do_arm_semihosting(CPUARMState *env)
|
||||||
return len - ret;
|
return len - ret;
|
||||||
}
|
}
|
||||||
case TARGET_SYS_READC:
|
case TARGET_SYS_READC:
|
||||||
/* XXX: Read from debug console. Not implemented. */
|
qemu_log_mask(LOG_UNIMP, "%s: SYS_READC not implemented", __func__);
|
||||||
return 0;
|
return 0;
|
||||||
case TARGET_SYS_ISTTY:
|
case TARGET_SYS_ISTTY:
|
||||||
GET_ARG(0);
|
GET_ARG(0);
|
||||||
|
@ -397,7 +398,7 @@ target_ulong do_arm_semihosting(CPUARMState *env)
|
||||||
return buf.st_size;
|
return buf.st_size;
|
||||||
}
|
}
|
||||||
case TARGET_SYS_TMPNAM:
|
case TARGET_SYS_TMPNAM:
|
||||||
/* XXX: Not implemented. */
|
qemu_log_mask(LOG_UNIMP, "%s: SYS_TMPNAM not implemented", __func__);
|
||||||
return -1;
|
return -1;
|
||||||
case TARGET_SYS_REMOVE:
|
case TARGET_SYS_REMOVE:
|
||||||
GET_ARG(0);
|
GET_ARG(0);
|
||||||
|
|
Loading…
Reference in New Issue