Re: RFA/ARM: Switch mode when setting PC

Andrew Cagney
2004-01-17T16:36:28Z

>> On Fri, Jan 16, 2004 at 02:12:18PM -0500, Andrew Cagney wrote:
>
>> > Or a lack of design, Arm needs to ensure that it doesn't define PC_REGNUM.
>
>>
>> OK, I'll keep that in mind.
>>
>
>> > >In the past we've tried to distinguish R15 from PC. This was especially
>> > >useful in the legacy 26-bit mode where the CPSR bits *were* in R15.
>
>>
>> Perhaps, in that case, we should have the PC as a pseudoregister. That
>> would simplify a lot of arm-tdep.c.
>
>
> That was my feeling too.

BTW, the user visible $pc is now typically per-frame and tied to the
"unwound return address". If that pseudo-register were made visible
things could get confusing.

Andrew