* Simulating different models using a single simulator... @ 2001-10-20 9:26 Alan Lehotsky 2001-11-07 7:13 ` Frank Ch. Eigler 2001-11-19 12:16 ` Alan Lehotsky 0 siblings, 2 replies; 4+ messages in thread From: Alan Lehotsky @ 2001-10-20 9:26 UTC (permalink / raw) To: cgen 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Simulating different models using a single simulator... 2001-10-20 9:26 Simulating different models using a single simulator Alan Lehotsky @ 2001-11-07 7:13 ` Frank Ch. Eigler 2001-11-23 8:07 ` Frank Ch. Eigler 2001-11-19 12:16 ` Alan Lehotsky 1 sibling, 1 reply; 4+ messages in thread From: Frank Ch. Eigler @ 2001-11-07 7:13 UTC (permalink / raw) To: Alan Lehotsky; +Cc: cgen [-- Attachment #1: Type: text/plain, Size: 428 bytes --] 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 #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Simulating different models using a single simulator... 2001-11-07 7:13 ` Frank Ch. Eigler @ 2001-11-23 8:07 ` Frank Ch. Eigler 0 siblings, 0 replies; 4+ messages in thread From: Frank Ch. Eigler @ 2001-11-23 8:07 UTC (permalink / raw) To: Alan Lehotsky; +Cc: cgen 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 -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7/nRBVZbdDOm/ZT0RAqvtAJ4gt3aNzQ2b9p9cRMddgpAtBrPSwgCZAag0 xtdd/qGuy8R0ZIwDTCVvwH4= =NNgn -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Simulating different models using a single simulator... 2001-10-20 9:26 Simulating different models using a single simulator Alan Lehotsky 2001-11-07 7:13 ` Frank Ch. Eigler @ 2001-11-19 12:16 ` Alan Lehotsky 1 sibling, 0 replies; 4+ messages in thread From: Alan Lehotsky @ 2001-11-19 12:16 UTC (permalink / raw) To: cgen 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-23 16:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-10-20 9:26 Simulating different models using a single simulator Alan Lehotsky 2001-11-07 7:13 ` Frank Ch. Eigler 2001-11-23 8:07 ` Frank Ch. Eigler 2001-11-19 12:16 ` Alan Lehotsky
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).