diff options
author | Dave Brolley <brolley@redhat.com> | 2003-08-29 16:43:38 +0000 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2003-08-29 16:43:38 +0000 |
commit | 21d23b4ac7fb31bb58f8fdd4ad50dd34684090c6 (patch) | |
tree | 6eb75af8dcc68f6d36278485027a5d3968ef0cc9 /sim/common | |
parent | 1c38b001dba236e8d0bc86d1959c4a5dc5374d23 (diff) | |
download | gdb-21d23b4ac7fb31bb58f8fdd4ad50dd34684090c6.tar.gz |
2003-08-20 Michael Snyder <msnyder@redhat.com>
Dave Brolley <brolley@redhat.com>
* cgen-par.h (flags, word1): New target-specific
fields of CGEN_WRITE_QUEUE_ELEMENT.
(CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
(CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
* gennltvals.sh: Add frv target.
* nltvals.def: Add frv target.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 10 | ||||
-rw-r--r-- | sim/common/cgen-par.h | 4 | ||||
-rw-r--r-- | sim/common/gennltvals.sh | 5 | ||||
-rw-r--r-- | sim/common/nltvals.def | 26 |
4 files changed, 45 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 3d012d74d3b..a13a4888a7a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -4,6 +4,16 @@ * sim-options.c (print_help): Cast the format with specifier to "int". +2003-08-20 Michael Snyder <msnyder@redhat.com> + Dave Brolley <brolley@redhat.com> + + * cgen-par.h (flags, word1): New target-specific + fields of CGEN_WRITE_QUEUE_ELEMENT. + (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro. + (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro. + * gennltvals.sh: Add frv target. + * nltvals.def: Add frv target. + 2003-06-23 Michael Snyder <msnyder@redhat.com> * nrun.c (main): Delete h8/300 ifdef (sim now handles signals). diff --git a/sim/common/cgen-par.h b/sim/common/cgen-par.h index 1b8a3215237..fad04b96938 100644 --- a/sim/common/cgen-par.h +++ b/sim/common/cgen-par.h @@ -39,6 +39,8 @@ enum cgen_write_queue_kind { typedef struct { enum cgen_write_queue_kind kind; /* Used to select union member below. */ IADDR insn_address; /* Address of the insn performing the write. */ + unsigned32 flags; /* Target specific flags. */ + long word1; /* Target specific field. */ union { struct { BI *target; @@ -152,6 +154,8 @@ typedef struct { #define CGEN_WRITE_QUEUE_ELEMENT_KIND(element) ((element)->kind) #define CGEN_WRITE_QUEUE_ELEMENT_IADDR(element) ((element)->insn_address) +#define CGEN_WRITE_QUEUE_ELEMENT_FLAGS(element) ((element)->flags) +#define CGEN_WRITE_QUEUE_ELEMENT_WORD1(element) ((element)->word1) extern void cgen_write_queue_element_execute ( SIM_CPU *, CGEN_WRITE_QUEUE_ELEMENT * diff --git a/sim/common/gennltvals.sh b/sim/common/gennltvals.sh index fefd8807a31..8e8ad543361 100644 --- a/sim/common/gennltvals.sh +++ b/sim/common/gennltvals.sh @@ -41,6 +41,10 @@ dir=libgloss target=fr30 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" +dir=libgloss target=frv +$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ + "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" + dir=libgloss/i960 target=i960 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" @@ -64,3 +68,4 @@ $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ dir=libgloss/v850/sys target=v850 $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 14093ae39ac..9139dc462ba 100644 --- a/sim/common/nltvals.def +++ b/sim/common/nltvals.def @@ -238,6 +238,32 @@ /* end fr30 sys target macros */ #endif #endif +#ifdef NL_TARGET_frv +#ifdef sys_defs +/* from syscall.h */ +/* begin frv sys target macros */ + { "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_lseek", 6 }, + { "SYS_open", 2 }, + { "SYS_read", 4 }, + { "SYS_stat", 15 }, + { "SYS_time", 18 }, + { "SYS_times", 20 }, + { "SYS_unlink", 7 }, + { "SYS_utime", 17 }, + { "SYS_write", 5 }, +/* end frv sys target macros */ +#endif +#endif #ifdef NL_TARGET_i960 #ifdef sys_defs /* from syscall.h */ |