aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-04-08 06:41:25 -0600
committerTom Tromey <tom@tromey.com>2021-04-08 14:34:42 -0600
commit81e6e8ae407b206def2c6840736dad0dcf75eb0b (patch)
treea2c916002fdbf8fd5a3ff714edaa686146b7b38e /sim/common
parent83a559f7b93f2a06306e46d0d9ac094c599396ae (diff)
downloadgdb-81e6e8ae407b206def2c6840736dad0dcf75eb0b.zip
gdb-81e6e8ae407b206def2c6840736dad0dcf75eb0b.tar.gz
gdb-81e6e8ae407b206def2c6840736dad0dcf75eb0b.tar.bz2
Do not use old-style definitions in sim
This changes all the non-generated (hand-written) code in sim to use "new" (post-K&R) style function definitions. 2021-04-08 Tom Tromey <tom@tromey.com> * bpf.c (bpf_def_model_init): Use new-style declaration. sim/common/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use new-style declaration. sim/erc32/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * sis.c (run_sim, main): Use new-style declaration. * interf.c (run_sim, sim_open, sim_close, sim_load) (sim_create_inferior, sim_store_register, sim_fetch_register) (sim_info, sim_stop_reason, flush_windows, sim_do_command): Use new-style declaration. * help.c (usage, gen_help): Use new-style declaration. * func.c (batch, set_regi, set_rega, disp_reg, limcalc) (reset_stat, show_stat, init_bpt, int_handler, init_signals) (disp_fpu, disp_regs, disp_ctrl, disp_mem, dis_mem, event) (init_event, set_int, advance_time, now, wait_for_irq, check_bpt) (reset_all, sys_reset, sys_halt): Use new-style declaration. * float.c (get_accex, clear_accex, set_fsr): Use new-style declaration. * exec.c (sub_cc, add_cc, log_cc, dispatch_instruction, fpexec) (chk_asi, execute_trap, check_interrupts, init_regs): Use new-style declaration. * erc32.c (init_sim, reset, decode_ersr, mecparerror) (error_mode, decode_memcfg, decode_wcr, decode_mcr, sim_halt) (close_port, exit_sim, mec_reset, mec_intack, chk_irq, mec_irq) (set_sfsr, mec_read, mec_write, init_stdio, restore_stdio) (port_init, read_uart, write_uart, flush_uart, uarta_tx) (uartb_tx, uart_rx, uart_intr, uart_irq_start, wdog_intr) (wdog_start, rtc_intr, rtc_start, rtc_counter_read) (rtc_scaler_set, rtc_reload_set, gpt_intr, gpt_start) (gpt_counter_read, gpt_scaler_set, gpt_reload_set, timer_ctrl) (memory_read, memory_write, get_mem_ptr, sis_memory_write) (sis_memory_read): Use new-style declaration. sim/frv/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * sim-if.c (sim_open, frv_sim_close, sim_create_inferior): Use new-style declaration. sim/h8300/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * compile.c (cmdline_location): Use new-style declaration. sim/iq2000/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * sim-if.c (sim_open, sim_create_inferior): Use new-style declaration. * iq2000.c (fetch_str): Use new-style declaration. sim/lm32/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * sim-if.c (sim_open, sim_create_inferior): Use new-style declaration. sim/m32r/ChangeLog 2021-04-08 Tom Tromey <tom@tromey.com> * sim-if.c (sim_open, sim_create_inferior): Use new-style declaration.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/cgen-utils.c24
2 files changed, 11 insertions, 18 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index ded8bbf..ca0829c 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-08 Tom Tromey <tom@tromey.com>
+
+ * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
+ new-style declaration.
+
2021-04-03 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (install-common): Install as run-$arch and
diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c
index 8e87ceb..3d7c282 100644
--- a/sim/common/cgen-utils.c
+++ b/sim/common/cgen-utils.c
@@ -319,9 +319,7 @@ CONVDISI (val)
#endif /* DI_FN_SUPPORT */
QI
-RORQI (val, shift)
- QI val;
- int shift;
+RORQI (QI val, int shift)
{
if (shift != 0)
{
@@ -336,9 +334,7 @@ RORQI (val, shift)
}
QI
-ROLQI (val, shift)
- QI val;
- int shift;
+ROLQI (QI val, int shift)
{
if (shift != 0)
{
@@ -353,9 +349,7 @@ ROLQI (val, shift)
}
HI
-RORHI (val, shift)
- HI val;
- int shift;
+RORHI (HI val, int shift)
{
if (shift != 0)
{
@@ -370,9 +364,7 @@ RORHI (val, shift)
}
HI
-ROLHI (val, shift)
- HI val;
- int shift;
+ROLHI (HI val, int shift)
{
if (shift != 0)
{
@@ -387,9 +379,7 @@ ROLHI (val, shift)
}
SI
-RORSI (val, shift)
- SI val;
- int shift;
+RORSI (SI val, int shift)
{
if (shift != 0)
{
@@ -404,9 +394,7 @@ RORSI (val, shift)
}
SI
-ROLSI (val, shift)
- SI val;
- int shift;
+ROLSI (SI val, int shift)
{
if (shift != 0)
{