From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27162 invoked by alias); 17 May 2002 12:49:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27123 invoked from network); 17 May 2002 12:49:03 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 17 May 2002 12:49:03 -0000 Received: by fw-cam.cambridge.arm.com; id NAA09473; Fri, 17 May 2002 13:49:01 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma008702; Fri, 17 May 02 13:48:08 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA04837; Fri, 17 May 2002 13:48:08 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA23580; Fri, 17 May 2002 13:48:07 +0100 (BST) Message-Id: <200205171248.NAA23580@cam-mail2.cambridge.arm.com> To: Nick Clifton cc: gdb-patches@sources.redhat.com, Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: ARM SIM - add support to select SWI emulations to support. In-reply-to: Your message of "Fri, 17 May 2002 13:38:04 BST." <200205171238.NAA22578@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 17 May 2002 05:49:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00708.txt.bz2 > + > + extern unsigned int swi_mask; > + > + #define SWI_MASK_DEMON (1 << 0) > + #define SWI_MASK_ANGEL (1 << 1) > + #define SWI_MASK_REDBOOT (1 << 2) > > > Why make this a mask? A major part of the problem here is that these SWI > sets may be mutually incompatible. Why not just require the user to > select the right one? Actually, DEMON and ANGEL are compatible (they were designed to be). But that doesn't make this generally true of all SWI sets that we might want to emulate. The specific case here could be handled by allowing --swi=demon --swi=angel --swi=angel+demon --swi=redboot Note the FPE in the ARMulator requires (a subset of) DEMON SWI support in order to be able to handle floating point exceptions. R.