On Tue, May 13, 2014 at 1:46 PM, Jonas Bonn <[email protected]> wrote: > On 05/13/2014 12:17 PM, Stefan Kristiansson wrote: >> On Tue, May 13, 2014 at 9:09 AM, Stefan Kristiansson >> <[email protected]> wrote: > >> So, a piece of software that is only interested in 1) (i.e. Linux in >> this case) is completely free to omit 2) and read/write the additional >> GPR file with the l.mfspr and l.mtspr instructions. > > Which SPR's are that? As far as I recall, there's no way to access > other contexts' registers... and adding such a functionality is probably > against the spirit of this functionality. >
/me thinks you recall wrong then ;) "6.4.3 Accessing Other Contexts’ Registers This operation can be done only in supervisor mode. In the basic instruction set we have the l.mtspr and l.mfspr instructions that are used to access shadowed registers." The GPR0-GPR511 SPR space addresses are: group 0, register 1024-1535. Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
