diff options
author | Michael Walle <michael@walle.cc> | 2014-04-22 20:18:42 +0200 |
---|---|---|
committer | Michael Walle <michael@walle.cc> | 2014-05-24 19:42:29 +0200 |
commit | f7bbcfb5c303a07322f1e0f258a936a720183169 (patch) | |
tree | f80eb40b70e9521fddfa6b96fbb8e9247c4e51c7 /target-lm32/README | |
parent | a946ce802002fe6233adbf1a6222d0837d44fc33 (diff) | |
download | qemu-f7bbcfb5c303a07322f1e0f258a936a720183169.zip qemu-f7bbcfb5c303a07322f1e0f258a936a720183169.tar.gz qemu-f7bbcfb5c303a07322f1e0f258a936a720183169.tar.bz2 |
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 <michael@walle.cc>
Diffstat (limited to 'target-lm32/README')
-rw-r--r-- | target-lm32/README | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-lm32/README b/target-lm32/README index a1c2c7e..03ddbff 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: |