diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-04 21:43:21 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-07 09:17:05 -0700 |
commit | bdca5ee4bcd2fce04de6c9eabdbef8d960298e02 (patch) | |
tree | a4b1e34ae5704f5e115c6db4f84d05eb8c5a636f /sim/d10v | |
parent | 1f635d209e61d900a6326aa281e697e31fcdae1e (diff) | |
download | gdb-bdca5ee4bcd2fce04de6c9eabdbef8d960298e02.zip gdb-bdca5ee4bcd2fce04de6c9eabdbef8d960298e02.tar.gz gdb-bdca5ee4bcd2fce04de6c9eabdbef8d960298e02.tar.bz2 |
remove PARAMS from sim
This removes the last uses of PARAMS from sim.
2014-01-06 Tom Tromey <tromey@redhat.com>
* README-HACKING: Don't use PARAMS.
* arm/wrapper.c: Don't use PARAMS.
* bfin/sim-main.h: Don't use PARAMS.
* common/callback.c: Don't use PARAMS.
* common/cgen-trace.c: Don't use PARAMS.
* common/run-sim.h: Don't use PARAMS.
* common/run.c: Don't use PARAMS.
* common/sim-base.h: Don't use PARAMS.
* common/sim-load.c: Don't use PARAMS.
* common/sim-options.h: Don't use PARAMS.
* common/sim-trace.c: Don't use PARAMS.
* common/sim-trace.h: Don't use PARAMS.
* common/sim-utils.h: Don't use PARAMS.
* cr16/cr16_sim.h: Don't use PARAMS.
* cr16/gencode.c: Don't use PARAMS.
* cr16/interp.c: Don't use PARAMS.
* cr16/simops.c: Don't use PARAMS.
* d10v/d10v_sim.h: Don't use PARAMS.
* d10v/gencode.c: Don't use PARAMS.
* d10v/interp.c: Don't use PARAMS.
* d10v/simops.c: Don't use PARAMS.
* erc32/erc32.c: Don't use PARAMS.
* erc32/exec.c: Don't use PARAMS.
* erc32/float.c: Don't use PARAMS.
* erc32/func.c: Don't use PARAMS.
* erc32/sis.c: Don't use PARAMS.
* erc32/sis.h: Don't use PARAMS.
* mips/interp.c: Don't use PARAMS.
* mips/sim-main.h: Don't use PARAMS.
* sh/interp.c: Don't use PARAMS.
* v850/sim-main.h: Don't use PARAMS.
* v850/v850_sim.h: Don't use PARAMS.
Diffstat (limited to 'sim/d10v')
-rw-r--r-- | sim/d10v/d10v_sim.h | 16 | ||||
-rw-r--r-- | sim/d10v/gencode.c | 8 | ||||
-rw-r--r-- | sim/d10v/interp.c | 20 | ||||
-rw-r--r-- | sim/d10v/simops.c | 8 |
4 files changed, 26 insertions, 26 deletions
diff --git a/sim/d10v/d10v_sim.h b/sim/d10v/d10v_sim.h index 09e0631..c541b41 100644 --- a/sim/d10v/d10v_sim.h +++ b/sim/d10v/d10v_sim.h @@ -442,8 +442,8 @@ do \ while (0) extern uint8 *dmem_addr (uint16 offset); -extern uint8 *imem_addr PARAMS ((uint32)); -extern bfd_vma decode_pc PARAMS ((void)); +extern uint8 *imem_addr (uint32); +extern bfd_vma decode_pc (void); #define RB(x) (*(dmem_addr(x))) #define SB(addr,data) ( RB(addr) = (data & 0xff)) @@ -454,12 +454,12 @@ extern bfd_vma decode_pc PARAMS ((void)); #undef ENDIAN_INLINE #else -extern uint32 get_longword PARAMS ((uint8 *)); -extern uint16 get_word PARAMS ((uint8 *)); -extern int64 get_longlong PARAMS ((uint8 *)); -extern void write_word PARAMS ((uint8 *addr, uint16 data)); -extern void write_longword PARAMS ((uint8 *addr, uint32 data)); -extern void write_longlong PARAMS ((uint8 *addr, int64 data)); +extern uint32 get_longword (uint8 *); +extern uint16 get_word (uint8 *); +extern int64 get_longlong (uint8 *); +extern void write_word (uint8 *addr, uint16 data); +extern void write_longword (uint8 *addr, uint32 data); +extern void write_longlong (uint8 *addr, int64 data); #endif #define SW(addr,data) write_word(dmem_addr(addr),data) diff --git a/sim/d10v/gencode.c b/sim/d10v/gencode.c index b66297d..c0a748f 100644 --- a/sim/d10v/gencode.c +++ b/sim/d10v/gencode.c @@ -5,9 +5,9 @@ #include "ansidecl.h" #include "opcode/d10v.h" -static void write_header PARAMS ((void)); -static void write_opcodes PARAMS ((void)); -static void write_template PARAMS ((void)); +static void write_header (void); +static void write_opcodes (void); +static void write_template (void); int main (argc, argv) @@ -31,7 +31,7 @@ write_header () for (opcode = (struct d10v_opcode *)d10v_opcodes; opcode->name; opcode++) if (opcode->format != OPCODE_FAKE) - printf("void OP_%X PARAMS ((void));\t\t/* %s */\n",opcode->opcode, opcode->name); + printf("void OP_%X (void);\t\t/* %s */\n",opcode->opcode, opcode->name); } diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index 23db647..a0b334d 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -43,15 +43,15 @@ asection *text; bfd_vma text_start; bfd_vma text_end; -static long hash PARAMS ((long insn, int format)); -static struct hash_entry *lookup_hash PARAMS ((uint32 ins, int size)); -static void get_operands PARAMS ((struct simops *s, uint32 ins)); -static void do_long PARAMS ((uint32 ins)); -static void do_2_short PARAMS ((uint16 ins1, uint16 ins2, enum _leftright leftright)); -static void do_parallel PARAMS ((uint16 ins1, uint16 ins2)); -static char *add_commas PARAMS ((char *buf, int sizeof_buf, unsigned long value)); -extern void sim_set_profile PARAMS ((int n)); -extern void sim_set_profile_size PARAMS ((int n)); +static long hash (long insn, int format); +static struct hash_entry *lookup_hash (uint32 ins, int size); +static void get_operands (struct simops *s, uint32 ins); +static void do_long (uint32 ins); +static void do_2_short (uint16 ins1, uint16 ins2, enum _leftright leftright); +static void do_parallel (uint16 ins1, uint16 ins2); +static char *add_commas (char *buf, int sizeof_buf, unsigned long value); +extern void sim_set_profile (int n); +extern void sim_set_profile_size (int n); static INLINE uint8 *map_memory (unsigned phys_addr); #ifdef NEED_UI_LOOP_HOOK @@ -62,7 +62,7 @@ static INLINE uint8 *map_memory (unsigned phys_addr); static long ui_loop_hook_counter = UI_LOOP_POLL_INTERVAL; /* Actual hook to call to run through gdb's gui event loop */ -extern int (*deprecated_ui_loop_hook) PARAMS ((int signo)); +extern int (*deprecated_ui_loop_hook) (int signo); #endif /* NEED_UI_LOOP_HOOK */ #ifndef INLINE diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c index 0b58505..ed3e570 100644 --- a/sim/d10v/simops.c +++ b/sim/d10v/simops.c @@ -122,10 +122,10 @@ move_to_cr (int cr, reg_t mask, reg_t val, int psw_hw_p) } #ifdef DEBUG -static void trace_input_func PARAMS ((char *name, - enum op_types in1, - enum op_types in2, - enum op_types in3)); +static void trace_input_func (char *name, + enum op_types in1, + enum op_types in2, + enum op_types in3); #define trace_input(name, in1, in2, in3) do { if (d10v_debug) trace_input_func (name, in1, in2, in3); } while (0) |