binutils-gdb/sim
Mike Frysinger 383861bd08 sim: invert sim_state storage
Currently all ports have to declare sim_state themselves in their
sim-main.h and then embed the common sim_state_base & sim_cpu 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_state, and
if the port actually needs state on a per-instance basis, it can use
the new arch_data field for it.  Most ports don't actually use it,
so they don't need to declare anything at all.

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.
2021-05-17 00:42:55 -04:00
..
aarch64 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
arm sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
avr sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
bfin sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
bpf sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
common sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
cr16 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
cris sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
d10v sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
erc32 sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
example-synacor sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
frv sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
ft32 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
h8300 sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
igen sim: add support for build-time ar & ranlib 2021-05-04 08:22:07 -04:00
iq2000 sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
lm32 sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
m4 sim: riscv: move __int128 check to configure 2021-05-16 00:04:17 -04:00
m32c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
m32r sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
m68hc11 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
mcore sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
microblaze sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
mips sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
mn10300 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
moxie sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
msp430 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
or1k sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
ppc sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
pru sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
riscv sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
rl78 sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
rx sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sh sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
testsuite sim: Add bfd include path for common testsuite tools 2021-05-07 21:02:34 +03:00
v850 sim: invert sim_state storage 2021-05-17 00:42:55 -04:00
.gitignore
aclocal.m4
ChangeLog sim: install library header files 2021-05-16 22:42:02 -04:00
configure sim: add support for build-time ar & ranlib 2021-05-04 08:22:07 -04:00
configure.ac
MAINTAINERS
Makefile.am sim: install library header files 2021-05-16 22:42:02 -04:00
Makefile.in sim: install library header files 2021-05-16 22:42:02 -04:00
README-HACKING sim: create header namespace 2021-05-14 00:41:05 -04:00