This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Simulating different models using a single simulator...
- From: Alan Lehotsky <apl at alum dot mit dot edu>
- To: cgen at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 15:04:32 -0500
- Subject: Simulating different models using a single simulator...
It appears that the
--model <name>
flag to the simulator allows one to indicate WHICH model of a cpu family is to be simulated.
What I'm wondering about is HOW to test the model selected within the (define-insn ...)?
What I'd like to do is conditionally test the model and execute slightly different code paths in
the simulator. [There are only 6 instructions out of about 40 that are different between the two
models....
-- Al
--
------------------------------------------------------------------------
Quality Software Management
http://home.earthlink.net/~qsmgmt
apl@alum.mit.edu
(978)287-0435 Voice
(978)808-6836 Cell
(978)287-0436 Fax
Software Process Improvement and Management Consulting
Language Design and Compiler Implementation