]> xenbits.xensource.com Git - osstest/qemu.git/commit
target-mips: add Unified Hosting Interface (UHI) support
authorLeon Alrae <leon.alrae@imgtec.com>
Fri, 19 Jun 2015 10:08:43 +0000 (11:08 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 26 Jun 2015 08:08:50 +0000 (09:08 +0100)
commit3b3c1694cfd394b73de426edebdbf90c28f664fd
treedcd93bdb3b5bc6a41bf4d9c518cca24925d10b94
parentff334767728011218c62f7476232d260cb5b28e6
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>
hw/mips/mips_malta.c
qemu-options.hx
target-mips/Makefile.objs
target-mips/helper.h
target-mips/mips-semi.c [new file with mode: 0644]
target-mips/translate.c