aboutsummaryrefslogtreecommitdiff
path: root/sim/common/defs.h
AgeCommit message (Collapse)AuthorFilesLines
2021-06-16sim: drop arch-specific config.hMike Frysinger1-15/+3
All of the settings in here are handled by the common top-level config.h, so drop the individual arch-config.h files entirely. This will also help guarantee that we don't add any new arch specific defines that would affect common code which will help with the effort of unifying them.
2021-06-12sim: unify sim-load.o buildingMike Frysinger1-0/+4
Since this file does not rely on any port-specific settings, move it up to building as part of the common step so we only do it once in a multibuild.
2021-06-12sim: unify platform function & header testsMike Frysinger1-1/+13
Move the various platform tests up a level to avoid duplication across the ports. When building multiple versions, this speeds things up a bit. For now we move the obvious stuff up a level, but we don't turn own the config.h entirely just yet -- we still have some tests related to libraries that need consideration.
2021-05-29sim: leverage gnulibMike Frysinger1-0/+12
We use getline, so leverage gnulib to provide fallback implementation.
2021-05-16sim: switch config.h usage to defs.hMike Frysinger1-0/+30
The defs.h header will take care of including the various config.h headers. For now, it's just config.h, but we'll add more when we integrate gnulib in. This header should be used instead of config.h, and should be the first include in every .c file. We won't rely on the old behavior where we expected files to include the port's sim-main.h which then includes the common sim-basics.h which then includes config.h. We have a ton of code that includes things before sim-main.h, and it sometimes needs to be that way. Creating a dedicated header avoids the ordering mess and implicit inclusion that shows up otherwise.