summaryrefslogtreecommitdiffstats
path: root/target-mips/mips-semi.c
Commit message (Collapse)AuthorAgeFilesLines
* target-mips: convert host to MIPS errno values when requiredLeon Alrae2015-06-261-11/+33
| | | | | | | | Convert only errno values which can be returned by system calls in mips-semi.c and are not generic to all archs. Signed-off-by: Leon Alrae <leon.alrae@imgtec.com> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: add Unified Hosting Interface (UHI) supportLeon Alrae2015-06-261-0/+336
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>
OpenPOWER on IntegriCloud