mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
linux-user: Fix MIPS indirect syscall handling
Change the number of argument for MIPS sys_syscall from 0 to 8. This allows arguments for indirect syscalls to be processed correctly. Signed-off-by: Riku Voipio <riku.voipio@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: An-Cheng Huang <ancheng@ubnt.com>
This commit is contained in:
parent
ff7a981aff
commit
29fb0f2530
1 changed files with 1 additions and 1 deletions
|
@ -1749,7 +1749,7 @@ void cpu_loop(CPUPPCState *env)
|
|||
#define MIPS_SYS(name, args) args,
|
||||
|
||||
static const uint8_t mips_syscall_args[] = {
|
||||
MIPS_SYS(sys_syscall , 0) /* 4000 */
|
||||
MIPS_SYS(sys_syscall , 8) /* 4000 */
|
||||
MIPS_SYS(sys_exit , 1)
|
||||
MIPS_SYS(sys_fork , 0)
|
||||
MIPS_SYS(sys_read , 3)
|
||||
|
|
Loading…
Reference in a new issue