This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: multiple isa support
- To: Doug Evans <dje at transmeta dot com>
- Subject: Re: multiple isa support
- From: Ben Elliston <bje at redhat dot com>
- Date: Fri, 24 Nov 2000 13:12:18 +1100 (EST)
- Cc: cgen development <cgen at sources dot redhat dot com>
Hi Doug,
> #include "cgen-engine.h"
> #include "cpu.h"
> #include "decode.h"
I'm guessing the way to go is to have a separate #include for each
decoder. After quick glance at m32r's decode.h and decodex.h it seems
like they can co-exist.
I ended up leaving the code generator to emit #include "decode.h" and then
created my own decode.h which brings in the relevant decoder:
#ifdef WANT_ISA_FOO
#include "decode-foo.h"
#endif
#ifdef WANT_ISA_BAR
#include "decode-bar.h"
#endif
I can control this from my Makefile by passing -D options to the compiler.
I think this is probably sufficient. I don't feel this is a problem that we
should invest a whole lot of time to solve for the sim/common framework.
We've got bigger fish to fry. :-)
Cheers, Ben