Michael Walle wrote:
>> RCSR would work like this:
>>
>> gpr[rX] = IE;
>> gpr[rX].TLBCNG = 0;
>
> so we can't read back the i/dtlb bits?
The above would only make sure that you don't accidently change
the TLB settings when playing with IE.IE. E.g., things like
void cli(void)
{
IE &= ~IE_mask;
}
->
cli:
rcsr r1, IE
andi r1, r1, ~1
wcsr IE, r1
...
and
IE = 0;
->
wcsr IE, r0
would be equivalent as far as IE.IE and the TLB are concerned.
You could still see the TLB enable bits in the IE register.
> iirc the Linux kernel already saves the complete ie register.
Just what I assumed :-)
- Werner
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode