diff options
| author | Michael Davidsaver | 2017-01-27 16:20:20 +0100 |
|---|---|---|
| committer | Peter Maydell | 2017-01-27 16:20:20 +0100 |
| commit | 58117c9bb429cd9552d998687aa99088eb1d8528 (patch) | |
| tree | 444a9f119d9126a98d475dbcb60cba53195f12ed /include/exec | |
| parent | aspeed/smc: handle dummy bytes when doing fast reads in command mode (diff) | |
| download | qemu-58117c9bb429cd9552d998687aa99088eb1d8528.tar.gz qemu-58117c9bb429cd9552d998687aa99088eb1d8528.tar.xz qemu-58117c9bb429cd9552d998687aa99088eb1d8528.zip | |
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 <mdavidsaver@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1484937883-1068-2-git-send-email-peter.maydell@linaro.org
[PMM: rewrote commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
