On 09/06/2015 10:36 PM, Richard Henderson wrote:
On Sep 5, 2015 14:35, Bastian Koppelmann <kbast...@mail.uni-paderborn.de> wrote:
IIRC a lot of the registers are supervisor only, e.g. VR, NPC or SR and
the manual is fairly clear about that. User mode cpu ought not to read
these registers unconditionally.
When I last discussed this on the openrisc list, back in March, there was no
real specification for user mode, and what bits are or should be accessible.
Looking at
http://opencores.org/or1k/Architecture_Specification
today, that still seems to be the case.
In the meantime, dropping the privilege check makes linux-user GCC tests work
better.
Looking at the article, user mode seems to be optional, so I'm not
against it, but it does look weird. How does ork1sim do it?
Cheers,
Bastian