From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13294 invoked by alias); 23 Jan 2006 03:31:14 -0000 Received: (qmail 13284 invoked by uid 22791); 23 Jan 2006 03:31:13 -0000 X-Spam-Check-By: sourceware.org Received: from miranda.se.axis.com (HELO miranda.se.axis.com) (193.13.178.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 23 Jan 2006 03:31:12 +0000 Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.83.5.18]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id k0N3V4VJ017488; Mon, 23 Jan 2006 04:31:04 +0100 Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id k0N3V4mC010229; Mon, 23 Jan 2006 04:31:04 +0100 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id k0N3V4LA010225; Mon, 23 Jan 2006 04:31:04 +0100 Date: Mon, 23 Jan 2006 03:31:00 -0000 Message-Id: <200601230331.k0N3V4LA010225@ignucius.se.axis.com> From: Hans-Peter Nilsson To: cgen@sourceware.org CC: bje@gcc.gnu.org Subject: [RFA:] Fix breakage of manually building SID CPU Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00004.txt.bz2 See dev.scm. The recentlish (within the last years) enumeration SID-SIMULATOR, split off from SIMULATOR, isn't handled in dev.scm, causing the cload after load-sid to error. It means my how-to-repeat description for the SID-generator-problem with cris.cpu at broke with the SID-SIMULATOR introduction. I.e.: (load "dev.scm") (load-sid) (cload #:arch "../../cpu/cris" #:options "with-scache" #:machs "crisv32") (cgen-decode.cxx) got, at the (cload ...): Backtrace: In dev.scm: 84: 0 [error "unknown application:" SID-SIMULATOR] 52: 1 (case APPLICATION ((UNKNOWN) (error "application not loaded")) ...) 33: 2 (let (# # # #) (letrec # #) (case APPLICATION # # ...)) In standard input: 3: 3* [cload #:arch "../../cpu/cris" #:options "with-scache" #:machs "crisv32"] dev.scm:84:13: In procedure error in expression (error "unknown application:" APPLICATION): dev.scm:84:13: unknown application: SID-SIMULATOR ABORT: (misc-error) Which begs the question: how do people debug their new SID CPU ports these days? Maybe the fix is as simple as copying the SIMULATOR case? A patch follows for that. It works for the guile sequence above. With CGEN sources at the time of this writing, I no longer get the error above or at the URL. I haven't checked whether the generated code is correct, though. Ok to commit? cgen: * dev.scm (cload) : New case, duplicated from SIMULATOR. Index: dev.scm =================================================================== RCS file: /cvs/src/src/cgen/dev.scm,v retrieving revision 1.9 diff -p -u -r1.9 dev.scm --- dev.scm 15 Jun 2005 21:28:18 -0000 1.9 +++ dev.scm 23 Jan 2006 03:28:55 -0000 @@ -76,6 +76,11 @@ sim-init! sim-finish! sim-analyze!)) + ((SID-SIMULATOR) (cpu-load (string-append "./cpu/" arch ".cpu") + keep-mach keep-isa options + sim-init! + sim-finish! + sim-analyze!)) ((SIM-TEST) (cpu-load (string-append "./cpu/" arch ".cpu") keep-mach keep-isa options sim-test-init! brgds, H-P