]> Git Repo - qemu.git/commit
armv7m: MRS/MSR: handle unprivileged access
authorMichael Davidsaver <[email protected]>
Fri, 27 Jan 2017 15:20:20 +0000 (15:20 +0000)
committerPeter Maydell <[email protected]>
Fri, 27 Jan 2017 15:20:20 +0000 (15:20 +0000)
commit58117c9bb429cd9552d998687aa99088eb1d8528
tree444a9f119d9126a98d475dbcb60cba53195f12ed
parentac2810defa9d4ba856adbaa9c899defecd8585de
armv7m: MRS/MSR: handle unprivileged access

The MRS and MSR instruction handling has a number of flaws:
 * unprivileged accesses should only be able to read
   CONTROL and the xPSR subfields, and only write APSR
   (others RAZ/WI)
 * privileged access should not be able to write xPSR
   subfields other than APSR
 * accesses to unimplemented registers should log as
   guest errors, not abort QEMU

Signed-off-by: Michael Davidsaver <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-id: 1484937883[email protected]
[PMM: rewrote commit message]
Signed-off-by: Peter Maydell <[email protected]>
target/arm/helper.c
This page took 0.025284 seconds and 4 git commands to generate.