Re: [WIP/RFC] MIPS registers overhaul

Andrew Cagney
2003-06-16T18:47:09Z

> At Sat, 14 Jun 2003 21:36:04 -0400, Andrew Cagney wrote:
>
>> Chris?
>
>
> Sorry, I must have missed that msg... 8-)
>
>
>
>> That isn't quite the detail I was looking for. Does the code need to
>> look like:
>>
>> save::
>> save FSR
>> if (FSR & FR)
>
> *** when FR == 1, it's 32 64-bit registers. so, invert.
>
>> save 32x32 FP
>
> *** or, save 16 (even) 64-bit FP registers, if MIPS2 or later.
> *** in fact, on MIPS2 and later, better to do that, since it'll be
> *** more efficient (fewer instructions).

But see my other post. Using a double store gives different behavior to
two single stores. I guess the kernel can do a double store, only then
swapping the registers before supplying them to gdb.

Andrew