binutils-gdb/sim/m32r
Andrew Burgess 7fb45a6895 sim/opcodes: Allow use of out of tree cgen source directory
When configuring with '--enbale-cgen-maint' the default for both the
opcodes/ and sim/ directories is to assume that the cgen source is
within the binutils-gdb source tree as binutils-gdb/cgen/.

In the old cvs days, this worked well, as cgen was just another
sub-module of the single cvs repository and could easily be checked
out within the binutils-gdb directory, and managed by cvs in the
normal way.

Now that binutils-gdb is in git, while cgen is still in cvs, placing
the cgen respository within the binutils-gdb tree is more troublesome,
and it would be nice if the two tools could be kept separate.

Luckily there is already some initial code in the configure.ac files
for both opcodes/ and sim/ to support having cgen be located outside
of the binutils-gdb tree, however, this was speculative code written
imagining a future where cgen would be built and installed to some
location.

Right now there is no install support for cgen, and so the configure
code in opcodes/ and sim/ doesn't really do anything useful.  In this
commit I repurpose this code to allow binutils-gdb to be configured so
that it can make use of a cgen source directory that is outside of the
binutils-gdb tree.

With this commit applied it is now possible to configure and build
binutils-gdb like this:

    /path/to/binutils-gdb/src/configure --enable-cgen-maint=/path/to/cgen/src/cgen/
    make all-opcodes
    make -C opcodes run-cgen-all

Just in case anyone is still using cgen inside the binutils-gdb tree,
I have left the default behaviour of '--enable-cgen-maint' (with no
parameter) unchanged, that is it looks for the cgen directory as
'binutils-gdb/cgen/'.

opcodes/ChangeLog:

	* configure.ac (enable-cgen-maint): Support passing path to cgen
	source tree.
	* configure: Regenerate.

sim/ChangeLog:

	* common/acinclude.m4 (enable-cgen-maint): Support passing path to
	cgen source tree.
	* cris/configure: Regenerate.
	* frv/configure: Regenerate.
	* iq2000/configure: Regenerate.
	* lm32/configure: Regenerate.
	* m32r/configure: Regenerate.
	* or1k/configure: Regenerate.
	* sh64/configure: Regenerate.
2018-12-06 12:21:10 +00:00
..
ChangeLog Honor an existing CC_FOR_BUILD in the environment for sim. 2017-09-06 10:16:12 -07:00
Makefile.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
README Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
aclocal.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
arch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
arch.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
config.in Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
cpu.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpu.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpu2.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpu2.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpuall.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpux.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cpux.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decode.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decode.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decode2.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decode2.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decodex.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
decodex.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dv-m32r_cache.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dv-m32r_cache.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dv-m32r_uart.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dv-m32r_uart.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
m32r-sim.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
m32r.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
m32r2.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
m32rx.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mloop.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mloop2.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mloopx.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
model.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
model2.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
modelx.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
sem-switch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
sem.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
sem2-switch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
semx-switch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
sim-if.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
sim-main.h sim: move WITH_SCACHE_PBB to sim-main.h 2015-12-25 02:42:03 -05:00
syscall.h 2004-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> 2004-12-09 00:47:45 +00:00
traps-linux.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
traps.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00

README

This is the m32r simulator directory.

It is still work-in-progress.  The current sources are reasonably
well tested and lots of features are in.  However, there's lots
more yet to come.

There are lots of machine generated files in the source directory!
They are only generated if you configure with --enable-cgen-maint,
similar in behaviour to Makefile.in, configure under automake/autoconf.

For details on the generator, see ../../cgen.

devo/cgen isn't part of the comp-tools module yet.
You'll need to check it out manually (also akin to automake/autoconf).