[WIP/RFC] MIPS registers overhaul
cgd@broadcom.com
cgd@broadcom.com
Tue Jun 17 16:27:00 GMT 2003
At Tue, 17 Jun 2003 14:27:32 +0000 (UTC), "Andrew Cagney" wrote:
> The key bit being that the terminology differentaties between a 32 bit
> CP1 register and a 64 bit FPR.
^^^^^^^^^^^^
a.k.a. "FGR"
> This also suggests a better way of representing the registers to the user:
>
> MIPS I:
> $cp0, $cp1, ...: 32/64 bit raw co-processor registers
I would strongly recommend "$fgrN" since:
* that follows the manual more closely (see my previous cites;
unfortunately i can't quote the C&V's right now since my Kane is at
home 8-),
* "cpN" (a.k.a. "copN") already have fairly-well understood meanings
in MIPS-wordl which aren't this, and assmuing that one might want to
provide useful names for, oh, say, the cp2 registers, and that might
confusing very quickly.
Of course, re: the latter point of the second bullet, it looks like
gcc already believes those registers to be named "$c2rN", so at least
little bit's a red herring. 8-)
chris
More information about the Gdb-patches
mailing list