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/erc32 | |
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/erc32')
-rw-r--r-- | sim/erc32/erc32.c | 82 | ||||
-rw-r--r-- | sim/erc32/exec.c | 16 | ||||
-rw-r--r-- | sim/erc32/float.c | 6 | ||||
-rw-r--r-- | sim/erc32/func.c | 20 | ||||
-rw-r--r-- | sim/erc32/sis.c | 8 | ||||
-rw-r--r-- | sim/erc32/sis.h | 92 |
6 files changed, 112 insertions, 112 deletions
diff --git a/sim/erc32/erc32.c b/sim/erc32/erc32.c index 3a5bd11..4d4177e 100644 --- a/sim/erc32/erc32.c +++ b/sim/erc32/erc32.c @@ -256,52 +256,52 @@ int erareg; /* Forward declarations */ -static void decode_ersr PARAMS ((void)); +static void decode_ersr (void); #ifdef ERRINJ -static void iucomperr PARAMS ((void)); +static void iucomperr (void); #endif -static void mecparerror PARAMS ((void)); -static void decode_memcfg PARAMS ((void)); -static void decode_wcr PARAMS ((void)); -static void decode_mcr PARAMS ((void)); -static void close_port PARAMS ((void)); -static void mec_reset PARAMS ((void)); -static void mec_intack PARAMS ((int32 level)); -static void chk_irq PARAMS ((void)); -static void mec_irq PARAMS ((int32 level)); -static void set_sfsr PARAMS ((uint32 fault, uint32 addr, - uint32 asi, uint32 read)); -static int32 mec_read PARAMS ((uint32 addr, uint32 asi, uint32 *data)); -static int mec_write PARAMS ((uint32 addr, uint32 data)); -static void port_init PARAMS ((void)); -static uint32 read_uart PARAMS ((uint32 addr)); -static void write_uart PARAMS ((uint32 addr, uint32 data)); -static void flush_uart PARAMS ((void)); -static void uarta_tx PARAMS ((void)); -static void uartb_tx PARAMS ((void)); -static void uart_rx PARAMS ((caddr_t arg)); -static void uart_intr PARAMS ((caddr_t arg)); -static void uart_irq_start PARAMS ((void)); -static void wdog_intr PARAMS ((caddr_t arg)); -static void wdog_start PARAMS ((void)); -static void rtc_intr PARAMS ((caddr_t arg)); -static void rtc_start PARAMS ((void)); -static uint32 rtc_counter_read PARAMS ((void)); -static void rtc_scaler_set PARAMS ((uint32 val)); -static void rtc_reload_set PARAMS ((uint32 val)); -static void gpt_intr PARAMS ((caddr_t arg)); -static void gpt_start PARAMS ((void)); -static uint32 gpt_counter_read PARAMS ((void)); -static void gpt_scaler_set PARAMS ((uint32 val)); -static void gpt_reload_set PARAMS ((uint32 val)); -static void timer_ctrl PARAMS ((uint32 val)); +static void mecparerror (void); +static void decode_memcfg (void); +static void decode_wcr (void); +static void decode_mcr (void); +static void close_port (void); +static void mec_reset (void); +static void mec_intack (int32 level); +static void chk_irq (void); +static void mec_irq (int32 level); +static void set_sfsr (uint32 fault, uint32 addr, + uint32 asi, uint32 read); +static int32 mec_read (uint32 addr, uint32 asi, uint32 *data); +static int mec_write (uint32 addr, uint32 data); +static void port_init (void); +static uint32 read_uart (uint32 addr); +static void write_uart (uint32 addr, uint32 data); +static void flush_uart (void); +static void uarta_tx (void); +static void uartb_tx (void); +static void uart_rx (caddr_t arg); +static void uart_intr (caddr_t arg); +static void uart_irq_start (void); +static void wdog_intr (caddr_t arg); +static void wdog_start (void); +static void rtc_intr (caddr_t arg); +static void rtc_start (void); +static uint32 rtc_counter_read (void); +static void rtc_scaler_set (uint32 val); +static void rtc_reload_set (uint32 val); +static void gpt_intr (caddr_t arg); +static void gpt_start (void); +static uint32 gpt_counter_read (void); +static void gpt_scaler_set (uint32 val); +static void gpt_reload_set (uint32 val); +static void timer_ctrl (uint32 val); static unsigned char * - get_mem_ptr PARAMS ((uint32 addr, uint32 size)); + get_mem_ptr (uint32 addr, uint32 size); -static void fetch_bytes PARAMS ((int asi, unsigned char *mem, - uint32 *data, int sz)); +static void fetch_bytes (int asi, unsigned char *mem, + uint32 *data, int sz); -static void store_bytes PARAMS ((unsigned char *mem, uint32 *data, int sz)); +static void store_bytes (unsigned char *mem, uint32 *data, int sz); extern int ext_irl; diff --git a/sim/erc32/exec.c b/sim/erc32/exec.c index 4fd2453..dc86ba3 100644 --- a/sim/erc32/exec.c +++ b/sim/erc32/exec.c @@ -220,14 +220,14 @@ int ext_irl = 0; /* Forward declarations */ -static uint32 sub_cc PARAMS ((uint32 psr, int32 operand1, int32 operand2, - int32 result)); -static uint32 add_cc PARAMS ((uint32 psr, int32 operand1, int32 operand2, - int32 result)); -static void log_cc PARAMS ((int32 result, struct pstate *sregs)); -static int fpexec PARAMS ((uint32 op3, uint32 rd, uint32 rs1, uint32 rs2, - struct pstate *sregs)); -static int chk_asi PARAMS ((struct pstate *sregs, uint32 *asi, uint32 op3)); +static uint32 sub_cc (uint32 psr, int32 operand1, int32 operand2, + int32 result); +static uint32 add_cc (uint32 psr, int32 operand1, int32 operand2, + int32 result); +static void log_cc (int32 result, struct pstate *sregs); +static int fpexec (uint32 op3, uint32 rd, uint32 rs1, uint32 rs2, + struct pstate *sregs); +static int chk_asi (struct pstate *sregs, uint32 *asi, uint32 op3); extern struct estate ebase; diff --git a/sim/erc32/float.c b/sim/erc32/float.c index 1b8f0fc..598b7cc 100644 --- a/sim/erc32/float.c +++ b/sim/erc32/float.c @@ -36,9 +36,9 @@ /* Forward declarations */ -extern uint32 _get_sw PARAMS ((void)); -extern uint32 _get_cw PARAMS ((void)); -static void __setfpucw PARAMS ((unsigned short fpu_control)); +extern uint32 _get_sw (void); +extern uint32 _get_cw (void); +static void __setfpucw (unsigned short fpu_control); /* This host dependent routine should return the accrued exceptions */ int diff --git a/sim/erc32/func.c b/sim/erc32/func.c index 881f26c..d001c58 100644 --- a/sim/erc32/func.c +++ b/sim/erc32/func.c @@ -63,16 +63,16 @@ uint32 errmec = 0; /* Forward declarations */ -static int batch PARAMS ((struct pstate *sregs, char *fname)); -static void set_rega PARAMS ((struct pstate *sregs, char *reg, uint32 rval)); -static void disp_reg PARAMS ((struct pstate *sregs, char *reg)); -static uint32 limcalc PARAMS ((float32 freq)); -static void int_handler PARAMS ((int32 sig)); -static void init_event PARAMS ((void)); -static int disp_fpu PARAMS ((struct pstate *sregs)); -static void disp_regs PARAMS ((struct pstate *sregs, int cwp)); -static void disp_ctrl PARAMS ((struct pstate *sregs)); -static void disp_mem PARAMS ((uint32 addr, uint32 len)); +static int batch (struct pstate *sregs, char *fname); +static void set_rega (struct pstate *sregs, char *reg, uint32 rval); +static void disp_reg (struct pstate *sregs, char *reg); +static uint32 limcalc (float32 freq); +static void int_handler (int32 sig); +static void init_event (void); +static int disp_fpu (struct pstate *sregs); +static void disp_regs (struct pstate *sregs, int cwp); +static void disp_ctrl (struct pstate *sregs); +static void disp_mem (uint32 addr, uint32 len); static int batch(sregs, fname) diff --git a/sim/erc32/sis.c b/sim/erc32/sis.c index f40cd65..89e6f02 100644 --- a/sim/erc32/sis.c +++ b/sim/erc32/sis.c @@ -41,10 +41,10 @@ typedef struct { char *data; } HIST_ENTRY; -extern char * readline PARAMS ((char *prompt)); -extern void using_history PARAMS ((void)); -extern void add_history PARAMS ((char *string)); -extern HIST_ENTRY *remove_history PARAMS ((int which)); +extern char * readline (char *prompt); +extern void using_history (void); +extern void add_history (char *string); +extern HIST_ENTRY *remove_history (int which); diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h index a1cf00b..f49d45d 100644 --- a/sim/erc32/sis.h +++ b/sim/erc32/sis.h @@ -159,61 +159,61 @@ struct irqcell { /* Prototypes */ /* erc32.c */ -extern void init_sim PARAMS ((void)); -extern void reset PARAMS ((void)); -extern void error_mode PARAMS ((uint32 pc)); -extern void sim_halt PARAMS ((void)); -extern void exit_sim PARAMS ((void)); -extern void init_stdio PARAMS ((void)); -extern void restore_stdio PARAMS ((void)); -extern int memory_read PARAMS ((int32 asi, uint32 addr, uint32 *data, - int32 sz, int32 *ws)); -extern int memory_write PARAMS ((int32 asi, uint32 addr, uint32 *data, - int32 sz, int32 *ws)); -extern int sis_memory_write PARAMS ((uint32 addr, - const unsigned char *data, uint32 length)); -extern int sis_memory_read PARAMS ((uint32 addr, char *data, - uint32 length)); +extern void init_sim (void); +extern void reset (void); +extern void error_mode (uint32 pc); +extern void sim_halt (void); +extern void exit_sim (void); +extern void init_stdio (void); +extern void restore_stdio (void); +extern int memory_read (int32 asi, uint32 addr, uint32 *data, + int32 sz, int32 *ws); +extern int memory_write (int32 asi, uint32 addr, uint32 *data, + int32 sz, int32 *ws); +extern int sis_memory_write (uint32 addr, + const unsigned char *data, uint32 length); +extern int sis_memory_read (uint32 addr, char *data, + uint32 length); /* func.c */ -extern void set_regi PARAMS ((struct pstate *sregs, int32 reg, - uint32 rval)); -extern void get_regi PARAMS ((struct pstate *sregs, int32 reg, char *buf)); -extern int exec_cmd PARAMS ((struct pstate *sregs, char *cmd)); -extern void reset_stat PARAMS ((struct pstate *sregs)); -extern void show_stat PARAMS ((struct pstate *sregs)); -extern void init_bpt PARAMS ((struct pstate *sregs)); -extern void init_signals PARAMS ((void)); +extern void set_regi (struct pstate *sregs, int32 reg, + uint32 rval); +extern void get_regi (struct pstate *sregs, int32 reg, char *buf); +extern int exec_cmd (struct pstate *sregs, char *cmd); +extern void reset_stat (struct pstate *sregs); +extern void show_stat (struct pstate *sregs); +extern void init_bpt (struct pstate *sregs); +extern void init_signals (void); struct disassemble_info; -extern void dis_mem PARAMS ((uint32 addr, uint32 len, - struct disassemble_info *info)); -extern void event PARAMS ((void (*cfunc) (), int32 arg, uint64 delta)); -extern void set_int PARAMS ((int32 level, void (*callback) (), int32 arg)); -extern void advance_time PARAMS ((struct pstate *sregs)); -extern uint32 now PARAMS ((void)); -extern int wait_for_irq PARAMS ((void)); -extern int check_bpt PARAMS ((struct pstate *sregs)); -extern void reset_all PARAMS ((void)); -extern void sys_reset PARAMS ((void)); -extern void sys_halt PARAMS ((void)); -extern int bfd_load PARAMS ((char *fname)); +extern void dis_mem (uint32 addr, uint32 len, + struct disassemble_info *info); +extern void event (void (*cfunc) (), int32 arg, uint64 delta); +extern void set_int (int32 level, void (*callback) (), int32 arg); +extern void advance_time (struct pstate *sregs); +extern uint32 now (void); +extern int wait_for_irq (void); +extern int check_bpt (struct pstate *sregs); +extern void reset_all (void); +extern void sys_reset (void); +extern void sys_halt (void); +extern int bfd_load (char *fname); /* exec.c */ -extern int dispatch_instruction PARAMS ((struct pstate *sregs)); -extern int execute_trap PARAMS ((struct pstate *sregs)); -extern int check_interrupts PARAMS ((struct pstate *sregs)); -extern void init_regs PARAMS ((struct pstate *sregs)); +extern int dispatch_instruction (struct pstate *sregs); +extern int execute_trap (struct pstate *sregs); +extern int check_interrupts (struct pstate *sregs); +extern void init_regs (struct pstate *sregs); /* interf.c */ -extern int run_sim PARAMS ((struct pstate *sregs, - uint64 icount, int dis)); +extern int run_sim (struct pstate *sregs, + uint64 icount, int dis); /* float.c */ -extern int get_accex PARAMS ((void)); -extern void clear_accex PARAMS ((void)); -extern void set_fsr PARAMS ((uint32 fsr)); +extern int get_accex (void); +extern void clear_accex (void); +extern void set_fsr (uint32 fsr); /* help.c */ -extern void usage PARAMS ((void)); -extern void gen_help PARAMS ((void)); +extern void usage (void); +extern void gen_help (void); |