aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-04-21 02:30:21 -0400
committerMike Frysinger <vapier@gentoo.org>2015-04-21 03:10:16 -0400
commit767e68f1b93be396e0cf1296a11584dd725b9569 (patch)
tree70b6bc3952f2368fd0b582e8fe72a4b799348603 /sim/common
parent248d23e82bc9430cdb6424a5b6b48999cf4001db (diff)
downloadgdb-767e68f1b93be396e0cf1296a11584dd725b9569.zip
gdb-767e68f1b93be396e0cf1296a11584dd725b9569.tar.gz
gdb-767e68f1b93be396e0cf1296a11584dd725b9569.tar.bz2
sim: mcore: switch to common syscall handling
Now that libgloss has a header tracking the syscalls for this arch, we can update the database to include it for the symbolic constants/maps. Then we can switch the mcore syscall callbacks over to the common ones.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rwxr-xr-xsim/common/gennltvals.sh4
-rw-r--r--sim/common/nltvals.def18
3 files changed, 27 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index d9c6963..3c4428f 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,10 @@
2015-04-21 Mike Frysinger <vapier@gentoo.org>
+ * gennltvals.sh: Add mcore support.
+ * nltvals.def: Regenerate.
+
+2015-04-21 Mike Frysinger <vapier@gentoo.org>
+
* cgen.sh: Add +x permissions.
* genmloop.sh: Likewise.
* gentvals.sh: Likewise.
diff --git a/sim/common/gennltvals.sh b/sim/common/gennltvals.sh
index 1a9e853..7027c35 100755
--- a/sim/common/gennltvals.sh
+++ b/sim/common/gennltvals.sh
@@ -68,6 +68,10 @@ dir=libgloss target=m32r
$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
"syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
+dir=libgloss/mcore target=mcore
+$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
+ "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
+
dir=libgloss target=mn10200
$shell ${srccom}/gentvals.sh $target sys ${newlibroot}/$dir \
"syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def
index b0dbbcf..3f82d47 100644
--- a/sim/common/nltvals.def
+++ b/sim/common/nltvals.def
@@ -366,6 +366,24 @@
/* end m32r sys target macros */
#endif
#endif
+#ifdef NL_TARGET_mcore
+#ifdef sys_defs
+/* from syscall.h */
+/* begin mcore sys target macros */
+ { "SYS_access", 33 },
+ { "SYS_close", 6 },
+ { "SYS_creat", 8 },
+ { "SYS_link", 9 },
+ { "SYS_lseek", 19 },
+ { "SYS_open", 5 },
+ { "SYS_read", 3 },
+ { "SYS_time", 13 },
+ { "SYS_times", 43 },
+ { "SYS_unlink", 10 },
+ { "SYS_write", 4 },
+/* end mcore sys target macros */
+#endif
+#endif
#ifdef NL_TARGET_mn10200
#ifdef sys_defs
/* from syscall.h */