mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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>
This commit is contained in:
parent
a946ce8020
commit
f7bbcfb5c3
6 changed files with 240 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue