Remove and modernize dependencies in sim
Some spots in the sim build used manual dependencies, and some spots
did a compilation by hand but did not use the automatic dependency
tracking code. This patch fixes these spots.
I didn't touch ppc, because it doesn't use the common Makefile code.
I also didn't touch objects that are for the build machine, because
automatic dependencies don't work for those.
sim/arm/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (armemu26.o, armemu32.o): Use COMPILE and
POSTCOMPILE.
sim/bpf/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, cpu.o, sim-if.o, traps.o): Remove.
(mloop-le.o, mloop-be.o, decode-le.o, decode-be.o, sim-le.o)
(sim-be.o): Use COMPILE and POSTCOMPILE.
(SIM_EXTRA_DEPS): Add eng-le.h, eng-be.h.
sim/cr16/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(simops.o): Remove.
sim/cris/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o, dv-cris.o, dv-rv.o, arch.o, traps.o)
(devices.o, crisv10f.o, mloopv10f.o, cpuv10.o, decodev10.o)
(modelv10.o, crisv32f.o, mloopv32f.o, cpuv32.o, decodev32.o)
(modelv32.o): Remove.
(SIM_EXTRA_DEPS): Add engv10.h.
sim/d10v/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(simops.o): Remove.
sim/frv/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, devices.o, frv.o, traps.o, pipeline.o)
(interrupts.o, memory.o, cache.o, options.o, reset.o)
(registers.o, profile.o, profile-fr400.o, profile-fr450.o)
(profile-fr500.o, profile-fr550.o, sim-if.o, mloop.o, cpu.o)
(decode.o, sem.o, model.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/iq2000/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o): Remove.
(arch.o): Use COMPILE and POSTCOMPILE.
(devices.o, iq2000.o, mloop.o, cpu.o, decode.o, sem.o, model.o):
Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/lm32/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, traps.o, sim-if.o, lm32.o, mloop.o)
(cpu.o, decode.o, sem.o, model.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/m32r/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o, arch.o, traps.o, traps-linux.o)
(devices.o, m32r.o, mloop.o, cpu.o, decode.o, sem.o, model.o)
(m32rx.o, mloopx.o, cpux.o, decodex.o, semx.o, modelx.o)
(m32r2.o, mloop2.o, cpu2.o, decode2.o, sem2.o, model2.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h, engx.h, eng2.h.
sim/m68hc11/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o): Remove.
sim/mips/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o, m16run.o, micromipsrun.o, multi-run.o):
Remove.
(SIM_EXTRA_DEPS): New variable.
sim/mn10300/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o): Remove.
(idecode.o op_utils.o semantics.o): Remove.
sim/or1k/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (mloop.o, arch.o, cpu.o, decode.o, sem.o)
(sem-switch.o, model.o): Remove.
sim/rl78/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (err.o, fpu.o, gdb-if.o, load.o, main.o, mem.o)
(reg.o, rl78.o): Remove.
sim/rx/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (err.o, fpu.o, gdb-if.o, load.o, main.o, mem.o)
(misc.o, reg.o, rx.o, syscalls.o, trace.o): Remove.
sim/sh/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(interp.o): Remove.
sim/v850/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o, simops.o, semantics.o): Remove.
2021-04-23 09:51:54 +08:00
|
|
|
2021-04-22 Tom Tromey <tom@tromey.com>
|
|
|
|
|
|
|
|
* Makefile.in (arch.o, cpu.o, sim-if.o, traps.o): Remove.
|
|
|
|
(mloop-le.o, mloop-be.o, decode-le.o, decode-be.o, sim-le.o)
|
|
|
|
(sim-be.o): Use COMPILE and POSTCOMPILE.
|
|
|
|
(SIM_EXTRA_DEPS): Add eng-le.h, eng-be.h.
|
|
|
|
|
2021-04-22 08:39:24 +08:00
|
|
|
2021-04-21 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
|
2021-04-22 02:51:10 +08:00
|
|
|
2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-04-19 09:50:07 +08:00
|
|
|
2021-04-18 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2016-08-12 22:12:41 +08:00
|
|
|
2021-04-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* sim-if.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
|
|
|
|
|
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.
2021-04-08 20:41:25 +08:00
|
|
|
2021-04-08 Tom Tromey <tom@tromey.com>
|
|
|
|
|
|
|
|
* bpf.c (bpf_def_model_init): Use new-style declaration.
|
|
|
|
|
2021-01-18 03:45:25 +08:00
|
|
|
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
|
2021-02-22 08:24:10 +08:00
|
|
|
2021-02-28 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-02-07 11:51:30 +08:00
|
|
|
2021-02-21 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
|
|
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
|
2021-02-07 08:46:16 +08:00
|
|
|
2021-02-13 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
|
|
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
|
2021-01-18 02:39:03 +08:00
|
|
|
2021-02-06 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-02-01 06:17:10 +08:00
|
|
|
2021-01-31 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* mloop.in (xextract-scache): Call SEM_ARGBUF.
|
|
|
|
|
2021-02-01 05:46:50 +08:00
|
|
|
2021-01-31 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* decode-be.c (bpfbf_ebpfbe_decode): Change TRACE_EXTRACT to
|
|
|
|
CGEN_TRACE_EXTRACT.
|
|
|
|
* decode-le.c (bpfbf_ebpfle_decode): Likewise.
|
|
|
|
|
2021-01-10 03:16:10 +08:00
|
|
|
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure.ac: Call SIM_AC_OPTION_WARNINGS.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-01-09 16:56:10 +08:00
|
|
|
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* config.in, configure: Regenerate.
|
|
|
|
|
2021-01-09 15:12:27 +08:00
|
|
|
2021-01-09 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-01-08 15:24:51 +08:00
|
|
|
2021-01-08 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2021-01-07 16:07:42 +08:00
|
|
|
2020-11-01 Simon Marchi <simon.marchi@polymtl.ca>
|
|
|
|
|
|
|
|
* configure: Re-generate.
|
|
|
|
|
|
|
|
2020-09-08 David Faust <david.faust@oracle.com>
|
|
|
|
|
|
|
|
* sem-be.c: Regenerate.
|
|
|
|
* sem-le.c: Likewise.
|
|
|
|
|
|
|
|
2020-09-03 Jose E. Marchesi <jose.marchesi@oracle.com>
|
|
|
|
|
|
|
|
* bpf.c: Include bpf-helpers.h.
|
|
|
|
* bpf-helpers.h: Provide a prototype for bpf_trace_printk.
|
|
|
|
* configure.ac: Set simulator bitsize to 64.
|
|
|
|
* configure (includedir): Regenerate.
|
|
|
|
* sim-if.c: Include stdlib.h.
|
|
|
|
* traps.c: Likewise.
|
|
|
|
|
|
|
|
2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
|
|
|
|
David Faust <david.faust@oracle.com>
|
|
|
|
|
|
|
|
* arch.c: Likewise.
|
|
|
|
* arch.h: Likewise.
|
|
|
|
* cpu.c: Likewise.
|
|
|
|
* cpu.h: Likewise.
|
|
|
|
* cpuall.h: Likewise.
|
|
|
|
* decode-be.c: Likewise.
|
|
|
|
* decode-be.h: Likewise.
|
|
|
|
* decode-le.c: Likewise.
|
|
|
|
* decode-le.h: Likewise.
|
|
|
|
* defs-be.h: Likewise.
|
|
|
|
* defs-le.h: Likewise.
|
|
|
|
* sem-be.c: Likewise.
|
|
|
|
* sem-le.c: Likewise.
|
|
|
|
|
|
|
|
2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
|
|
|
|
David Faust <david.faust@oracle.com>
|
|
|
|
|
|
|
|
* Makefile.in: New file.
|
|
|
|
* bpf-helpers.c: Likewise.
|
|
|
|
* bpf-helpers.def: Likewise.
|
|
|
|
* bpf-helpers.h: Likewise.
|
|
|
|
* bpf-sim.h: Likewise.
|
|
|
|
* bpf.c: Likewise.
|
|
|
|
* config.in: Likewise.
|
|
|
|
* configure.ac: Likewise.
|
|
|
|
* decode.h: Likewise.
|
|
|
|
* eng.h: Likewise.
|
|
|
|
* mloop.in: Likewise.
|
|
|
|
* sim-if.c: Likewise.
|
|
|
|
* sim-main.h: Likewise.
|
|
|
|
* traps.c: Likewise.
|
|
|
|
* configure: Generate.
|
|
|
|
* aclocal.m4: Likewise.
|