Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch][rfa] Representation of ISA Attribute in CGEN
@ 2005-09-23 18:28 Dave Brolley
  2005-09-23 19:40 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Brolley @ 2005-09-23 18:28 UTC (permalink / raw)
  To: gdb-patches, binutils

[-- Attachment #1: Type: text/plain, Size: 1818 bytes --]

Hi,

These changes have been in our local tree for a few years now and were 
developed for an internal port which requires *much* more than 32 ISAs 
or even 64 ISAs. These changes could be of benifit to others, so I would 
like to submit them for approval.

Currently, ISA is represented as an integer, like all the other 
non-boolean attributes. It is a bit mask with each bit representing 
whether a particular ISA is supported. Our port requires that there be 
no fixed limit on the number of ISAs, and so, we developed an open-ended 
representation for a bitset using a bitstring and a length. It is called 
CGEN_BITSET and is declared in include/opcode/cgen-bitset.h and 
supported by several new functions in opcodes/cgen-opc.c. All 
manipulation of these bitsets is done using these functions which hide 
the internal representation. See cgen-bitset.h (attached) for a 
description of the implementation

The patch has 3 parts:
1) Extension of CGEN_ATTR_VALUE_TYPE to be a union allowing the use of 
CGEN_BITSET as well as its supporting macros.

2) Changes to CGEN so that it generates code to correctly access and 
initialize the new definition of CGEN_ATTR_VALUE_TYPE and to use the 
proper cover functions when manipulating ISAs.

3) Changes to hand written portions of existing opcodes, sim and sid 
ports as in 2). Fortunately, the use of existing CGEN macros made these 
changes minimal.

I have also included in the patch the regenerated source for the frv 
port so that you can see the effect on the generated code. None of the 
generated code for existing sid ports is affected.

One natural extension of this work would be use the same representation 
for all bitset attributes in CGEN. I believe that MACH is the only other 
one at this time.

Seeking comments and approval to commit.

Thanks,
Dave

[-- Attachment #2: cgen-bitset.tar.gz --]
[-- Type: application/x-gzip, Size: 67768 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch][rfa] Representation of ISA Attribute in CGEN
  2005-09-23 18:28 [patch][rfa] Representation of ISA Attribute in CGEN Dave Brolley
@ 2005-09-23 19:40 ` Daniel Jacobowitz
  2005-09-23 20:24   ` Dave Brolley
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-09-23 19:40 UTC (permalink / raw)
  To: Dave Brolley; +Cc: gdb-patches, binutils

On Fri, Sep 23, 2005 at 02:27:55PM -0400, Dave Brolley wrote:
> Hi,
> 
> These changes have been in our local tree for a few years now and were 
> developed for an internal port which requires *much* more than 32 ISAs 
> or even 64 ISAs. These changes could be of benifit to others, so I would 
> like to submit them for approval.

MAINTAINERS says:

cgen/; cgen parts of opcodes/, sim/ & include/
        cgen: http://sources.redhat.com/cgen/
        Patches to cgen@sources.redhat.com
        May need separate opcodes/ or sim/ approval for
                commits of regenerated files there.

Is that list still alive?  If so, asking there may be more useful.  I
have no idea who can approve patches for cgen, but I think the gdb
maintainers won't.


-- 
Daniel Jacobowitz
CodeSourcery, LLC


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch][rfa] Representation of ISA Attribute in CGEN
  2005-09-23 19:40 ` Daniel Jacobowitz
@ 2005-09-23 20:24   ` Dave Brolley
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Brolley @ 2005-09-23 20:24 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb-patches, binutils

Daniel Jacobowitz wrote:

>MAINTAINERS says:
>
>cgen/; cgen parts of opcodes/, sim/ & include/
>        cgen: http://sources.redhat.com/cgen/
>        Patches to cgen@sources.redhat.com
>        May need separate opcodes/ or sim/ approval for
>                commits of regenerated files there.
>
>Is that list still alive?  If so, asking there may be more useful.  I
>have no idea who can approve patches for cgen, but I think the gdb
>maintainers won't.
>
>  
>
Yes, thanks. I have submitted this patch for approval to cgen and sid 
separately.

Dave



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch][rfa] Representation of ISA Attribute in CGEN
       [not found] <433319E3.9060307@redhat.com>
@ 2005-10-28 23:03 ` Dave Brolley
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Brolley @ 2005-10-28 23:03 UTC (permalink / raw)
  To: Dave Brolley; +Cc: cgen, binutils, gdb-patches, sid

This patch has now been committed.....

Dave Brolley wrote:

> Hi,
>
> These changes have been in our local tree for a few years now and were 
> developed for an internal port which requires *much* more than 32 ISAs 
> or even 64 ISAs. These changes could be of benifit to others, so I 
> would like to submit them for approval.
>
> Currently, ISA is represented as an integer, like all the other 
> non-boolean attributes. It is a bit mask with each bit representing 
> whether a particular ISA is supported. Our port requires that there be 
> no fixed limit on the number of ISAs, and so, we developed an 
> open-ended representation for a bitset using a bitstring and a length. 
> It is called CGEN_BITSET and is declared in 
> include/opcode/cgen-bitset.h and supported by several new functions in 
> opcodes/cgen-opc.c. All manipulation of these bitsets is done using 
> these functions which hide the internal representation. See 
> cgen-bitset.h (attached) for a description of the implementation
>
> The patch has 3 parts:
> 1) Extension of CGEN_ATTR_VALUE_TYPE to be a union allowing the use of 
> CGEN_BITSET as well as its supporting macros.
>
> 2) Changes to CGEN so that it generates code to correctly access and 
> initialize the new definition of CGEN_ATTR_VALUE_TYPE and to use the 
> proper cover functions when manipulating ISAs.
>
> 3) Changes to hand written portions of existing opcodes, sim and sid 
> ports as in 2). Fortunately, the use of existing CGEN macros made 
> these changes minimal.
>
> I have also included in the patch the regenerated source for the frv 
> port so that you can see the effect on the generated code. None of the 
> generated code for existing sid ports is affected.
>
> One natural extension of this work would be use the same 
> representation for all bitset attributes in CGEN. I believe that MACH 
> is the only other one at this time.
>
> Seeking comments and approval to commit.
>
> Thanks,
> Dave
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-28 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-23 18:28 [patch][rfa] Representation of ISA Attribute in CGEN Dave Brolley
2005-09-23 19:40 ` Daniel Jacobowitz
2005-09-23 20:24   ` Dave Brolley
     [not found] <433319E3.9060307@redhat.com>
2005-10-28 23:03 ` Dave Brolley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox