diff options
Diffstat (limited to 'sim/cr16')
-rw-r--r-- | sim/cr16/cr16_sim.h | 16 | ||||
-rw-r--r-- | sim/cr16/gencode.c | 8 | ||||
-rw-r--r-- | sim/cr16/interp.c | 14 | ||||
-rw-r--r-- | sim/cr16/simops.c | 8 |
4 files changed, 23 insertions, 23 deletions
diff --git a/sim/cr16/cr16_sim.h b/sim/cr16/cr16_sim.h index 257b627..68e1261 100644 --- a/sim/cr16/cr16_sim.h +++ b/sim/cr16/cr16_sim.h @@ -421,8 +421,8 @@ enum #define SEXT32(x) ((((x)&0xffffffff)^(~0x7fffffff))+0x80000000) extern uint8 *dmem_addr (uint32 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)) @@ -433,12 +433,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/cr16/gencode.c b/sim/cr16/gencode.c index f90dcb1..67f95ab 100644 --- a/sim/cr16/gencode.c +++ b/sim/cr16/gencode.c @@ -25,9 +25,9 @@ #include "ansidecl.h" #include "opcode/cr16.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 (int argc, char *argv[]) @@ -53,7 +53,7 @@ write_header () /* Loop over instruction table until a full match is found. */ for ( ; i < NUMOPCODES; i++) { - printf("void OP_%X_%X PARAMS ((void));\t\t/* %s */\n",cr16_instruction[i].match, (32 - cr16_instruction[i].match_bits), cr16_instruction[i].mnemonic); + printf("void OP_%X_%X (void);\t\t/* %s */\n",cr16_instruction[i].match, (32 - cr16_instruction[i].match_bits), cr16_instruction[i].mnemonic); } } diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index 6006967..2ef14cb 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -52,12 +52,12 @@ asection *text; bfd_vma text_start; bfd_vma text_end; -static struct hash_entry *lookup_hash PARAMS ((uint64 ins, int size)); -static void get_operands PARAMS ((operand_desc *s, uint64 mcode, int isize, int nops)); -static int do_run PARAMS ((uint64 mc)); -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 struct hash_entry *lookup_hash (uint64 ins, int size); +static void get_operands (operand_desc *s, uint64 mcode, int isize, int nops); +static int do_run (uint64 mc); +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 @@ -68,7 +68,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/cr16/simops.c b/sim/cr16/simops.c index 55befb5..2fa60c5 100644 --- a/sim/cr16/simops.c +++ b/sim/cr16/simops.c @@ -189,10 +189,10 @@ move_to_cr (int cr, creg_t mask, creg_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 (cr16_debug) trace_input_func (name, in1, in2, in3); } while (0) |