From: Dave Brolley <brolley@redhat.com>
To: Doug Evans <dje@sebabeach.org>
Cc: cgen@sourceware.org
Subject: Re: CGEN_BITSET
Date: Mon, 22 Jun 2009 16:00:00 -0000 [thread overview]
Message-ID: <4A3FAA79.3050203@redhat.com> (raw)
In-Reply-To: <4A3D6504.5010203@sebabeach.org>
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"))
> ))
> )
>
next prev parent reply other threads:[~2009-06-22 16:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-20 22:39 CGEN_BITSET Doug Evans
2009-06-22 16:00 ` Dave Brolley [this message]
2009-06-22 16:19 ` CGEN_BITSET Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A3FAA79.3050203@redhat.com \
--to=brolley@redhat.com \
--cc=cgen@sourceware.org \
--cc=dje@sebabeach.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).