From 2a3591b0e073a7ca03259d317d1044124048fab1 Mon Sep 17 00:00:00 2001 From: M R Swami Reddy Date: Tue, 8 Apr 2008 08:44:51 +0000 Subject: gennltvals.sh: Add cr16 target sys macros. nltvals.def: Rebuild. --- sim/common/ChangeLog | 5 +++++ sim/common/gennltvals.sh | 4 ++++ sim/common/nltvals.def | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) (limited to 'sim') 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 + + * gennltvals.sh: Add cr16. + * nltvals.def: Rebuild. + 2007-10-11 Jesper Nilsson * 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 -- cgit v1.1