aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-24 00:14:15 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-24 23:51:16 -0400
commitbdedb2d21b3f0aceb391a96b8605d35f3a4ade5c (patch)
treef733a3831f010ca430c1931dc3fd7d34a09a48ba /sim/m32r
parent22c6cfe9c871977a0284711a53730b9a973a9fc9 (diff)
downloadgdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.zip
gdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.tar.gz
gdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.tar.bz2
sim: callback: extend syscall interface to handle 7 args
The Linux syscall interface, depending on architecture, handles up to 7 arguments. Extend the callback API to handle those.
Diffstat (limited to 'sim/m32r')
-rw-r--r--sim/m32r/ChangeLog4
-rw-r--r--sim/m32r/traps-linux.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog
index f0b3876..650b19d 100644
--- a/sim/m32r/ChangeLog
+++ b/sim/m32r/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-24 Mike Frysinger <vapier@gentoo.org>
+
+ * traps-linux.c (m32r_trap): Set s.arg4, s.arg5, s.arg6, and s.arg7.
+
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/m32r/traps-linux.c b/sim/m32r/traps-linux.c
index 8ff0465..c218582 100644
--- a/sim/m32r/traps-linux.c
+++ b/sim/m32r/traps-linux.c
@@ -252,6 +252,10 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num)
s.arg1 = arg1;
s.arg2 = arg2;
s.arg3 = arg3;
+ s.arg4 = arg4;
+ s.arg5 = arg5;
+ s.arg6 = arg6;
+ s.arg7 = arg7;
s.p1 = (PTR) sd;
s.p2 = (PTR) current_cpu;