This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simulating different models using a single simulator...


Hi -

alehotsky wrote:
: [...]
: What I'm wondering about is HOW to test the model selected
: within the (define-insn ...)?

You mean by means other than the MACH attribute assigned to the
instruction as a whole?  Within the insn semantics?  I don't know
if it works, but look for "current-mach" in cgen/cpu/sparccom.cpu.
(Another way would be to rely on a virtual operand whose getter
function identifies the machine.)

- FChE

Attachment: msg00045/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]