From: Dave Brolley Date: Fri, 29 Aug 2003 16:43:38 +0000 (+0000) Subject: 2003-08-20 Michael Snyder X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=33319edb531c8c68573bf1baec7dcd3d4ab220ae;p=deliverable%2Fbinutils-gdb.git 2003-08-20 Michael Snyder Dave Brolley * 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. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 3d012d74d3..a13a4888a7 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 + Dave Brolley + + * 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 * 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 1b8a321523..fad04b9693 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 fefd8807a3..8e8ad54336 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 14093ae39a..9139dc462b 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 */