Re: RFA: PowerPC sim & GDB: use fixed register numbering

Andrew Cagney
2004-08-04T18:07:30Z

> Andrew Cagney <cagney@gnu.org> writes:
>
>>>> > The old code, which did an under-the-covers call into gdb to map number -> name, was bad and definitly needed to be replaced. The above though could still do with some work - too much on the magic of those numbers in gdb/sim-ppc.h :-(
>>>> > Anyway, lets first get the enum in place.
>>
>>>
>>> Since we've nailed the enum, what should we do about the sim/ppc?
>
>
> What do you have in mind?

Something that uses the enum directly. Have a look at the other
simulators that use the enum - they have a big switch doing a map.

Andrew

PS: I see old sim changes were accidently committed, I've reverted them.