On 2015-06-19 11:08, Leon Alrae wrote: > 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.al...@imgtec.com> > --- > hw/mips/mips_malta.c | 9 +- > qemu-options.hx | 10 +- > target-mips/Makefile.objs | 2 +- > target-mips/helper.h | 2 + > target-mips/mips-semi.c | 336 > ++++++++++++++++++++++++++++++++++++++++++++++ > target-mips/translate.c | 75 ++++++++--- > 6 files changed, 408 insertions(+), 26 deletions(-) > create mode 100644 target-mips/mips-semi.c
Reviewed-by: Aurelien Jarno <aurel...@aurel32.net> -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net