diff options
| author | Peter Maydell | 2011-06-16 18:37:13 +0200 |
|---|---|---|
| committer | Riku Voipio | 2011-06-21 19:30:10 +0200 |
| commit | 5945cfcb4b862a57fbbbf794f5e4b0fa4499624a (patch) | |
| tree | 9f50f18d5d3510f15d2065b414d3ecc432a6ee95 /linux-user/qemu.h | |
| parent | flatload: memp was a write-only variable (diff) | |
| download | qemu-5945cfcb4b862a57fbbbf794f5e4b0fa4499624a.tar.gz qemu-5945cfcb4b862a57fbbbf794f5e4b0fa4499624a.tar.xz qemu-5945cfcb4b862a57fbbbf794f5e4b0fa4499624a.zip | |
linux-user: Bump do_syscall() up to 8 syscall arguments
On 32 bit MIPS a few syscalls have 7 arguments, and so to call
them via NR_syscall the guest needs to be able to pass 8 arguments
to do_syscall(). Raise the number of arguments do_syscall() takes
accordingly.
This fixes some gcc 4.6 compiler warnings about arg7 and arg8
variables being set and never used.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/qemu.h')
| -rw-r--r-- | linux-user/qemu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 237386caac..627c8b3423 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -192,7 +192,8 @@ abi_long do_brk(abi_ulong new_brk); void syscall_init(void); abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, - abi_long arg5, abi_long arg6); + abi_long arg5, abi_long arg6, abi_long arg7, + abi_long arg8); void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern THREAD CPUState *thread_env; void cpu_loop(CPUState *env); |
