diff mbox

[10/14] mips: we really need the extra arguments

Message ID 4dbd4519cd89578af41a7be2ccddc422a1ff1b31.1307014902.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela June 2, 2011, 11:53 a.m. UTC
I have no clue how/why syscalls with 7 parameters work on mips.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 linux-user/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/linux-user/main.c b/linux-user/main.c
index 088def3..d13affa 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2067,6 +2067,10 @@  void cpu_loop(CPUMIPSState *env)
                 default:
                     break;
                 }
+                /* We should change do_syscall to take extra args.
+                   Some syscalls on mips already use 7 args */
+                (void)arg7;
+                (void)arg8;
                 ret = do_syscall(env, env->active_tc.gpr[2],
                                  env->active_tc.gpr[4],
                                  env->active_tc.gpr[5],