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 | 33319edb531c8c68573bf1baec7dcd3d4ab220ae (patch) | |
tree | 78b5abad2bc3503d868587f8a3a0ecd3459198b7 /sim | |
parent | 51796a3f8b5d44e5c278c931af12556ef1286e10 (diff) | |
download | gdb-33319edb531c8c68573bf1baec7dcd3d4ab220ae.zip gdb-33319edb531c8c68573bf1baec7dcd3d4ab220ae.tar.gz gdb-33319edb531c8c68573bf1baec7dcd3d4ab220ae.tar.bz2 |
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')
-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 3d012d7..a13a488 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 1b8a321..fad04b9 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 fefd880..8e8ad54 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 14093ae..9139dc4 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 */ |