This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: PowerPC sim & GDB: use fixed register numbering
- From: Jim Blandy <jimb at redhat dot com>
- To: Andrew Cagney <cagney at gnu dot org>, Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 04 Aug 2004 12:11:13 -0500
- Subject: Re: RFA: PowerPC sim & GDB: use fixed register numbering
- References: <vt23c3mwgzk.fsf@zenia.home> <410F8C3E.3060502@gnu.org><vt2zn5blamt.fsf@zenia.home> <4110EA27.7020904@gnu.org>
Andrew Cagney <cagney@gnu.org> writes:
> > Andrew Cagney <cagney@gnu.org> writes:
> >
> >>> Have a look at the other sim-*.h files, you'll notice that most define
> >>> an enum namespace and not a series of magic constants. Can we expand
> >>> the table so that the constants aren't needed?
> > Is this going in the right direction?
>
> Yes, that should go in.
Okay, committed. Thanks to you and Kevin for the review.
> What's your plan with SPRs?
I think it's best to use the SPR numbers assigned by the ISA to
identify them. Trying to keep tables based on automatically assigned
enum values in sync would take a lot of work, for little gain, since
ISA SPR numbers are (obviously) unambiguous within any particular PPC
variant.
At the moment, the sim doesn't support any SPRs from different PPC
variants whose numbers clash. There'll be work needed there to handle
that; I don't have any particular insights there.