aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-18 22:48:31 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-18 23:03:38 -0400
commitf3d25569f113248ae34ac35e950378a90d332e64 (patch)
treed405b6cb96cbc4e8824c3adbd88b9500c127d5b1 /sim/common
parentb7c5246bbfad67b60a820db5e548e665171645ec (diff)
downloadgdb-f3d25569f113248ae34ac35e950378a90d332e64.zip
gdb-f3d25569f113248ae34ac35e950378a90d332e64.tar.gz
gdb-f3d25569f113248ae34ac35e950378a90d332e64.tar.bz2
sim: moxie: switch syscalls to common nltvals
Rather than hand duplicate the syscall constants, switch to the common nltvals framework. I made sure the constants have the same values before & after too :).
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rwxr-xr-xsim/common/gennltvals.py1
-rw-r--r--sim/common/nltvals.def31
3 files changed, 37 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 20a4257..d62a40d 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,10 @@
2021-04-18 Mike Frysinger <vapier@gentoo.org>
+ * gennltvals.py (TARGETS): Add moxie.
+ * nltvals.def: Regenerate.
+
+2021-04-18 Mike Frysinger <vapier@gentoo.org>
+
* gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
* nltvals.def: Regenerate.
diff --git a/sim/common/gennltvals.py b/sim/common/gennltvals.py
index 5831607..cf23c39 100755
--- a/sim/common/gennltvals.py
+++ b/sim/common/gennltvals.py
@@ -68,6 +68,7 @@ TARGETS = {
'mcore',
'mn10200',
'mn10300',
+ 'moxie',
'msp430',
'pru',
'riscv',
diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def
index 3b890af..27f1b0d 100644
--- a/sim/common/nltvals.def
+++ b/sim/common/nltvals.def
@@ -546,6 +546,37 @@
/* end mn10300 sys target macros */
#endif
#endif
+#ifdef NL_TARGET_moxie
+#ifdef sys_defs
+/* from syscall.h */
+/* begin moxie sys target macros */
+ { "SYS_argc", 22 },
+ { "SYS_argn", 24 },
+ { "SYS_argnlen", 23 },
+ { "SYS_argv", 13 },
+ { "SYS_argvlen", 12 },
+ { "SYS_chdir", 14 },
+ { "SYS_chmod", 16 },
+ { "SYS_close", 3 },
+ { "SYS_exit", 1 },
+ { "SYS_fstat", 10 },
+ { "SYS_getpid", 8 },
+ { "SYS_gettimeofday", 19 },
+ { "SYS_kill", 9 },
+ { "SYS_link", 21 },
+ { "SYS_lseek", 6 },
+ { "SYS_open", 2 },
+ { "SYS_read", 4 },
+ { "SYS_reconfig", 25 },
+ { "SYS_stat", 15 },
+ { "SYS_time", 18 },
+ { "SYS_times", 20 },
+ { "SYS_unlink", 7 },
+ { "SYS_utime", 17 },
+ { "SYS_write", 5 },
+/* end moxie sys target macros */
+#endif
+#endif
#ifdef NL_TARGET_msp430
#ifdef sys_defs
/* from syscall.h */