forked from Imagelibrary/binutils-gdb
Currently, the sim-config module will abort if alignment settings
haven't been specified by the port's configure.ac. This is a bit
weird when we've allowed SIM_AC_OPTION_ALIGNMENT to seem like it's
optional to use. Thus everyone invokes it.
There are 4 alignment settings, but really only 2 matters: strict
and nonstrict. The "mixed" setting is just the default ("unset"),
and "forced" isn't used directly by anyone (it's available as a
runtime option for some ports).
The m4 macro has 2 args: the "wire" settings (which represents the
hardwired port behavior), and the default settings (which are used
if nothing else is specified). If none are specified, then the
build won't work (see above as if SIM_AC_OPTION_ALIGNMENT wasn't
called). If default settings are provided, then that is used, but
we allow the user to override at runtime. Otherwise, the "wire"
settings are used and user runtime options to change are ignored.
Most ports specify a default, or set the "wire" to nonstrict. A
few set "wire" to strict, but it's not clear that's necessary as
it doesn't make the code behavior, by default, any different. It
might make things a little faster, but we should provide the user
the choice of the compromises to make: force a specific mode at
compile time for faster runtime, or allow the choice at runtime.
More likely it seems like an oversight when these ports were
initially created, and/or copied & pasted from existing ports.
With all that backstory, let's get to what this commit does.
First kill off the idea of a compile-time default alignment and
set it to nonstrict in the common code. For any ports that want
strict alignment by default, that code is moved to sim_open while
initializing the sim. That means WITH_DEFAULT_ALIGNMENT can be
completely removed.
Moving the default alignment to the runtime also allows removal
of setting the "wire" settings at configure time. Which allows
removing of all arguments to SIM_AC_OPTION_ALIGNMENT and moving
that call to common code.
The macro logic can be reworked to not pass WITH_ALIGNMENT as -D
CPPFLAG and instead move it to config.h.
All of these taken together mean we can hoist the macro up to the
top level and share it among all sims so behavior is consistent
among all the ports.
202 lines
4.8 KiB
Plaintext
202 lines
4.8 KiB
Plaintext
2021-06-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
|
|
|
|
2021-06-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4, config.in, configure: Regenerate.
|
|
|
|
2021-06-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* config.in, configure: Regenerate.
|
|
|
|
2021-06-09 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-if.c (sim_open): Delete cgen_init call.
|
|
* traps.c (or1k32bf_fpu_error): Replace STATE_RUN_FAST_P with
|
|
PROFILE_ANY_P and TRACE_ANY_P.
|
|
|
|
2021-05-17 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-main.h: Move or1k-opc.h include.
|
|
(struct sim_state): Delete.
|
|
|
|
2021-05-16 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-main.h: Delete config.h include.
|
|
* or1k.c, sim-if.c, traps.c: Include defs.h.
|
|
|
|
2021-05-16 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* config.in, configure: Regenerate.
|
|
|
|
2021-05-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Delete SIM_AC_OPTION_ENVIRONMENT call.
|
|
* configure: Regenerate.
|
|
|
|
2021-05-04 Tom Tromey <tromey@adacore.com>
|
|
|
|
* mloop.in: Include <stdlib.h>.
|
|
|
|
2021-05-04 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-05-01 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* config.in, configure: Regenerate.
|
|
|
|
2021-04-26 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4, config.in, configure: Regenerate.
|
|
|
|
2021-04-22 Tom Tromey <tom@tromey.com>
|
|
|
|
* configure, config.in: Rebuild.
|
|
|
|
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.
|
|
|
|
2021-04-22 Tom Tromey <tom@tromey.com>
|
|
|
|
* configure: Rebuild.
|
|
|
|
2021-04-21 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-04-18 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-04-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-if.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
|
|
|
|
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
2021-02-28 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-02-21 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
2021-02-13 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
2021-02-06 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-01-31 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* decode.c (or1k32bf_decode): Change TRACE_EXTRACT to
|
|
CGEN_TRACE_EXTRACT.
|
|
|
|
2021-01-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* traps.c (or1k32bf_exception): Move handler_pc decl to top of scope.
|
|
(or1k32bf_mfspr): Move val decl to top of function body.
|
|
|
|
2021-01-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* Makefile.in (SIM_OBJS): Delete redundant sim-cpu.o, sim-hload.o,
|
|
sim-hrw.o, sim-reg.o, sim-reason.o, sim-engine.o, sim-model.o,
|
|
sim-stop.o, and $(TRAPS_OBJ) entries.
|
|
(SIM_RUN_OBJS): Delete.
|
|
|
|
2021-01-12 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac (SIM_AC_OPTION_INLINE): Delete call.
|
|
* configure: Regenerate.
|
|
|
|
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Call SIM_AC_OPTION_WARNINGS.
|
|
* configure: Regenerate.
|
|
|
|
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-main.h: Include config.h.
|
|
|
|
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* config.in, configure: Regenerate.
|
|
* sim-if.c: Delete HAVE_STRING_H, HAVE_STRINGS_H, HAVE_STDLIB_H,
|
|
and strings.h include.
|
|
|
|
2021-01-09 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2021-01-08 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2019-06-13 Stafford Horne <shorne@gmail.com>
|
|
|
|
* cpu.c: Regenerate.
|
|
* cpu.h: Regenerate.
|
|
* decode.c: Regenerate.
|
|
* decode.h: Regenerate.
|
|
* model.c: Regenerate.
|
|
* sem-switch.c: Regenerate.
|
|
* sem.c: Regenerate.
|
|
|
|
2018-10-05 Stafford Horne <shorne@gmail.com>
|
|
|
|
* cpu.h: Regenerate.
|
|
* decode.c: Regenerate.
|
|
* decode.h: Regenerate.
|
|
* model.c: Regenerate.
|
|
* sem-switch.c: Regenerate.
|
|
* sem.c: Regenerate:
|
|
|
|
2017-12-12 Stafford Horne <shorne@gmail.com>
|
|
Peter Gavin <pgavin@gmail.com>
|
|
|
|
* aclocal.m4: Generated.
|
|
* config.in: Generated.
|
|
* configure: Generated.
|
|
|
|
2017-12-12 Stafford Horne <shorne@gmail.com>
|
|
Peter Gavin <pgavin@gmail.com>
|
|
|
|
* arch.c: Generated.
|
|
* arch.h: Generated.
|
|
* cpu.c: Generated.
|
|
* cpu.h: Generated.
|
|
* cpuall.h: Generated.
|
|
* decode.c: Generated.
|
|
* decode.h: Generated.
|
|
* model.c: Generated.
|
|
* sem-switch.c: Generated.
|
|
* sem.c: Generated.
|
|
|
|
2017-12-12 Stafford Horne <shorne@gmail.com>
|
|
Peter Gavin <pgavin@gmail.com>
|
|
|
|
* README: New file.
|
|
* Makefile.in: New file.
|
|
* configure.ac: New file.
|
|
* mloop.in: New file.
|
|
* or1k-sim.h: New file.
|
|
* or1k.c: New file.
|
|
* sim-if.c: New file.
|
|
* sim-main.h: New file.
|
|
* traps.c: New file.
|