From f7bbcfb5c303a07322f1e0f258a936a720183169 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Tue, 22 Apr 2014 20:18:42 +0200 Subject: target-lm32: add semihosting support Intercept certain system calls if semihosting is enabled. This should behave like the GDB simulator. Signed-off-by: Michael Walle --- target-lm32/README | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'target-lm32/README') diff --git a/target-lm32/README b/target-lm32/README index a1c2c7eb1e..03ddbffc54 100644 --- a/target-lm32/README +++ b/target-lm32/README @@ -26,6 +26,15 @@ first BSP which instantiate this model. A (32 bit) write to 0xfff0000 causes a vm shutdown. +Semihosting +----------- +Semihosting on this target is supported. Some system calls like read, write +and exit are executed on the host if semihosting is enabled. See +target/lm32-semi.c for all supported system calls. Emulation aware programs +can use this mechanism to shut down the virtual machine and print to the +host console. See the tcg tests for an example. + + Special instructions -------------------- The translation recognizes one special instruction to halt the cpu: -- cgit v1.2.3