binutils-gdb/sim/common
Mike Frysinger ffeb72b44c sim: sim_cpu: invert sim_cpu storage
Currently all ports have to declare sim_cpu themselves in their
sim-main.h and then embed the common sim_cpu_base in it.  This
dynamic makes it impossible to share common object code among
multiple ports because the core data structure is always different.

Let's invert this relationship: common code declares sim_cpu, and
the port uses the new arch_data field for its per-cpu state.

This is the first in a series of changes: it adds a define to select
between the old & new layouts, then converts all the ports that don't
need custom state over to the new layout.  This includes mn10300 that,
while it defines custom fields in its cpu struct, never uses them.
2022-12-20 23:57:38 -05:00
..
callback.c sim: remove use of PTR 2022-05-13 14:32:54 +09:30
cgen-accfp.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
cgen-cpu.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-defs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-engine.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-fpu.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
cgen-fpu.h sim/common: wire up new unordered comparisons 2019-06-13 21:27:10 +09:00
cgen-mem.h sim: cgen: constify GETT helpers 2022-10-31 21:24:39 +05:45
cgen-ops.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-par.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-par.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
cgen-run.c sim/cgen: initialize variable at creation in engine_run_n 2022-10-27 16:52:07 +01:00
cgen-scache.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-scache.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-sim.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen-trace.c Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
cgen-trace.h sim: fixes for libopcodes styled disassembler 2022-04-04 22:41:24 +01:00
cgen-types.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
cgen-utils.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cgen.sh sim: gennltvals.sh: handle split out newlib source tree 2015-04-21 03:10:16 -04:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
create-version.sh Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
defs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
dv-cfi.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
dv-cfi.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
dv-core.c sim: dv-core: add hw_detach_address method [PR sim/25211] 2022-12-19 20:31:02 -05:00
dv-glue.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
dv-pal.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
dv-sockser.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
dv-sockser.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gdbinit.in sim: add arch/.gdbinit stub scripts 2022-03-28 23:10:34 -04:00
genmloop.sh sim: Initialize pbb_br_* by default 2022-10-11 15:18:15 +01:00
gennltvals.py Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-alloc.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-alloc.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-base.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-base.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-device.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-device.h sim: Suppress non-literal printf warning 2022-10-11 15:18:14 +01:00
hw-events.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
hw-events.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
hw-handles.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-handles.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-instances.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-instances.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-main.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-ports.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-ports.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-properties.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
hw-properties.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
hw-tree.c sim: Remove self-assignments 2022-10-11 15:18:14 +01:00
hw-tree.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
local.mk sim: run: move linking into top-level 2022-11-05 20:00:56 +07:00
Make-common.in sim: run: move linking into top-level 2022-11-05 20:00:56 +07:00
nrun.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
portability.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
portability.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
run.1 Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-abort.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-alu.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-arange.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-arange.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-assert.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-base.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-basics.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-bits.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-bits.h sim: mips: Add simulator support for mips32r6/mips64r6 2022-02-04 19:37:26 -05:00
sim-close.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-command.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-config.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-config.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-core.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-core.h sim: fix “alligned” typos 2022-03-24 10:34:51 -04:00
sim-cpu.c sim: sim_cpu: invert sim_cpu storage 2022-12-20 23:57:38 -05:00
sim-cpu.h sim: sim_cpu: invert sim_cpu storage 2022-12-20 23:57:38 -05:00
sim-endian.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-endian.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-engine.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-engine.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-events.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-events.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-fpu.c sim: Add partial support for IEEE 754-2008 2022-02-04 19:37:26 -05:00
sim-fpu.h sim: Add partial support for IEEE 754-2008 2022-02-04 19:37:26 -05:00
sim-hload.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-hrw.c sim: common: change sim_read & sim_write to use void* buffers 2022-10-31 21:24:39 +05:45
sim-hw.c sim: Suppress non-literal printf warning 2022-10-11 15:18:14 +01:00
sim-hw.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-info.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-inline.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-inline.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-io.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-io.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-load.c Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
sim-memopt.c sim/common: Improve sim_dump_memory head comment 2022-02-16 07:38:44 +01:00
sim-memopt.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-model.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-model.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-module.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-module.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-n-bits.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-n-core.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-n-endian.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-options.c sim: update --version copyright year 2022-11-03 20:09:09 +07:00
sim-options.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-profile.c sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-profile.h sim: Make WITH_{TRACE,PROFILE}-based macros bool 2022-10-11 15:18:14 +01:00
sim-reason.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-reg.c sim: common: change sim_{fetch,store}_register helpers to use void* buffers 2022-11-02 20:31:10 +05:45
sim-resume.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-run.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-signal.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-signal.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-stop.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-syscall.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-syscall.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-trace.c sim: fixes for libopcodes styled disassembler 2022-04-04 22:41:24 +01:00
sim-trace.h sim: Make WITH_{TRACE,PROFILE}-based macros bool 2022-10-11 15:18:14 +01:00
sim-types.h sim: common: migrate to standard uintXX_t types 2022-01-06 01:17:39 -05:00
sim-utils.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-utils.h sim: common: change sim_read & sim_write to use void* buffers 2022-10-31 21:24:39 +05:45
sim-watch.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
sim-watch.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
syscall.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target-newlib-errno.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target-newlib-open.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target-newlib-signal.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target-newlib-syscall.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target-newlib-syscall.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
version.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00