From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14337 invoked by alias); 19 Nov 2001 20:16:40 -0000 Mailing-List: contact cgen-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.cygnus.com Received: (qmail 14282 invoked from network); 19 Nov 2001 20:16:33 -0000 Mime-Version: 1.0 X-Sender: qsmgmt@pop.earthlink.net Message-Id: Date: Sat, 20 Oct 2001 09:26:00 -0000 To: cgen@sources.redhat.com From: Alan Lehotsky Subject: Simulating different models using a single simulator... Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2001-q4/txt/msg00011.txt.bz2 It appears that the --model 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Lehotsky To: cgen@sources.redhat.com Subject: Simulating different models using a single simulator... Date: Mon, 19 Nov 2001 12:16:00 -0000 Message-ID: X-SW-Source: 2001-q4/msg00036.html Message-ID: <20011119121600.1mSeo-9W5PwRN6xeOAChY394qaefjF4Cl6SrINMyOPU@z> It appears that the --model 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