Re: [WIP/RFC] MIPS registers overhaul

Kevin Buettner
2003-05-15T00:07:32Z

On May 14, 4:34pm, cgd@broadcom.com wrote:

> In other words, the real arbiter of the unpredictability of those bits
> is Status:FR, so you should probably display them consistently with
> what it says (if you have Status... I forget 8-).

I see the following in mips2_fp_compat():

#if 0
/* FIXME drow 2002-03-10: This is disabled until we can do it consistently,
in all the places we deal with FP registers. PR gdb/413. */
/* Otherwise check the FR bit in the status register - it controls
the FP compatiblity mode. If it is clear we are in compatibility
mode. */
if ((read_register (PS_REGNUM) & ST0_FR) == 0)
return 1;
#endif

I don't know the details, but it appears that there may be problems
with consistently being able to fetch the status register. (Maybe
it's not available on all MIPS targets that GDB supports?)

Anyone know?

Kevin