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
..
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-08 12:27:45 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-08 12:29:00 -04:00
2021-05-16 22:38:41 -04:00
2021-05-17 00:42:55 -04:00
2021-01-18 12:25:57 -05:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-01 22:46:46 -04:00
2021-05-16 22:38:41 -04:00
2021-04-26 22:39:55 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-02 10:58:20 -04:00
2021-05-16 22:38:41 -04:00
2021-05-03 10:55:25 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-03 10:55:25 -04:00
2021-05-14 00:41:05 -04:00
2021-04-26 22:39:55 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-17 00:42:55 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-01-02 20:55:21 -05:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-01-04 18:10:40 -05:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-04-12 00:14:32 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-02 10:58:20 -04:00
2021-05-16 22:38:41 -04:00
2021-04-22 12:07:14 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-04 21:52:38 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-02 10:58:20 -04:00
2021-05-16 22:38:41 -04:00
2021-05-14 21:16:40 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-14 00:41:05 -04:00
2021-05-16 22:38:41 -04:00
2021-01-04 17:41:23 -05:00
2021-05-16 22:38:41 -04:00
2021-01-12 03:51:44 -05:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-16 22:38:41 -04:00
2021-05-03 10:55:25 -04:00
2021-05-17 00:42:55 -04:00
2021-05-03 10:55:25 -04:00
2021-05-16 22:38:41 -04:00
2021-02-06 12:12:51 -05:00
2021-05-16 22:38:41 -04:00