From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16351 invoked by alias); 22 Jun 2009 16:00:14 -0000 Received: (qmail 16335 invoked by uid 22791); 22 Jun 2009 16:00:11 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 16:00:02 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5MFxuh9004387; Mon, 22 Jun 2009 11:59:56 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5MFxtcu027926; Mon, 22 Jun 2009 11:59:56 -0400 Received: from dhcp-10-15-16-104.yyz.redhat.com (dhcp-10-15-16-111.yyz.redhat.com [10.15.16.111]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5MFxsk8002431; Mon, 22 Jun 2009 11:59:55 -0400 Message-ID: <4A3FAA79.3050203@redhat.com> Date: Mon, 22 Jun 2009 16:00:00 -0000 From: Dave Brolley User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Doug Evans CC: cgen@sourceware.org Subject: Re: CGEN_BITSET References: <4A3D6504.5010203@sebabeach.org> In-Reply-To: <4A3D6504.5010203@sebabeach.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00059.txt.bz2 Hi Doug, The mep port required an inderminate and configurable number of ISA's to be possible, so we needed something that could represent an unspecified number of bits (more then 32 or 64 possibly) in a mask. The intent was not to treat isa specially. It just turned out to be the first bit mask to require this treatment. CGEN_BITSET is simply a bit mask represented by character strings as opposed to integers. Dave Doug Evans wrote: > Treating "isa" specially is a bit of a hack. What's the story behind > CGEN_BITSET? > > (define (gen-attr-type attr) > (if (string=? (string-downcase (gen-sym attr)) "isa") > "CGEN_BITSET" > (case (attr-kind attr) > ((boolean) "int") > ((bitset) "unsigned int") > ((integer) "int") > ((enum) (string-append "enum " (string-downcase (gen-sym > attr)) "_attr")) > )) > ) >