diff options
author | Leon Alrae <leon.alrae@imgtec.com> | 2015-06-19 11:08:43 +0100 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-06-26 09:08:50 +0100 |
commit | 3b3c1694cfd394b73de426edebdbf90c28f664fd (patch) | |
tree | dcd93bdb3b5bc6a41bf4d9c518cca24925d10b94 /target-mips/helper.h | |
parent | ff334767728011218c62f7476232d260cb5b28e6 (diff) |
target-mips: add Unified Hosting Interface (UHI) support
Add UHI semihosting support for MIPS. QEMU run with "-semihosting" option
will alter the behaviour of SDBBP 1 instruction -- UHI operation will be
called instead of generating a debug exception.
Also tweak Malta's pseudo-bootloader. On CPU reset the $4 register is set
to -1 if semihosting arguments are passed to indicate that the UHI
operations should be used to obtain input arguments.
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-mips/helper.h')
-rw-r--r-- | target-mips/helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-mips/helper.h b/target-mips/helper.h index 8df98c71b8..2b28e875cf 100644 --- a/target-mips/helper.h +++ b/target-mips/helper.h @@ -1,6 +1,8 @@ DEF_HELPER_3(raise_exception_err, noreturn, env, i32, int) DEF_HELPER_2(raise_exception, noreturn, env, i32) +DEF_HELPER_1(do_semihosting, void, env) + #ifdef TARGET_MIPS64 DEF_HELPER_4(sdl, void, env, tl, tl, int) DEF_HELPER_4(sdr, void, env, tl, tl, int) |