aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorM R Swami Reddy <MR.Swami.Reddy@nsc.com>2008-04-08 08:44:51 +0000
committerM R Swami Reddy <MR.Swami.Reddy@nsc.com>2008-04-08 08:44:51 +0000
commit2a3591b0e073a7ca03259d317d1044124048fab1 (patch)
treec143c45273a7fa0b7464a939d5193cfbd5e520fc /sim/common
parentae8aafe1c2ecc144e375026da63d8387f342cb62 (diff)
downloadgdb-2a3591b0e073a7ca03259d317d1044124048fab1.zip
gdb-2a3591b0e073a7ca03259d317d1044124048fab1.tar.gz
gdb-2a3591b0e073a7ca03259d317d1044124048fab1.tar.bz2
gennltvals.sh: Add cr16 target sys macros.
nltvals.def: Rebuild.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/gennltvals.sh4
-rw-r--r--sim/common/nltvals.def36
3 files changed, 45 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 87bc0ee..b929d37 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
+
+ * gennltvals.sh: Add cr16.
+ * nltvals.def: Rebuild.
+
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
diff --git a/sim/common/gennltvals.sh b/sim/common/gennltvals.sh
index 8e8ad54..e232baa 100644
--- a/sim/common/gennltvals.sh
+++ b/sim/common/gennltvals.sh
@@ -37,6 +37,10 @@ $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
# OBSOLETE $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
# OBSOLETE "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
+dir=libgloss target=cr16
+$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
+ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
+
dir=libgloss target=fr30
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
"syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def
index 9139dc4..ba01962 100644
--- a/sim/common/nltvals.def
+++ b/sim/common/nltvals.def
@@ -418,3 +418,39 @@
/* end v850 sys target macros */
#endif
#endif
+#ifdef NL_TARGET_cr16
+#ifdef sys_defs
+ /* from syscall.h */
+ /* begin cr16 sys target macros */
+ { "SYS_ARG", 24 },
+ { "SYS_chdir", 12 },
+ { "SYS_chmod", 15 },
+ { "SYS_chown", 16 },
+ { "SYS_creat", 8 },
+ { "SYS_execv", 11 },
+ { "SYS_execve", 59 },
+ /*{ "SYS_exit", 1 }, REVISIT*/
+ { "SYS_fork", 2 },
+ { "SYS_fstat", 22 },
+ { "SYS_getpid", 20 },
+ { "SYS_isatty", 21 },
+ { "SYS_kill", 60 },
+ { "SYS_link", 9 },
+ { "SYS_mknod", 14 },
+ { "SYS_pipe", 42 },
+ { "SYS_open", 0x401 },
+ { "SYS_close", 0x402 },
+ { "SYS_read", 0x403 },
+ { "SYS_write", 0x404 },
+ { "SYS_lseek", 0x405 },
+ { "SYS_rename", 0x406 },
+ { "SYS_unlink", 0x407 },
+ { "SYS_exit", 0x410 },
+ { "SYS_stat", 38 },
+ { "SYS_time", 0x300 },
+ { "SYS_utime", 201 },
+ { "SYS_wait", 202 },
+ { "SYS_wait4", 7 },
+/* end cr16 sys target macros */
+#endif
+#endif