diff options
| author | Onur Sahin | 2018-04-10 14:02:24 +0200 |
|---|---|---|
| committer | Peter Maydell | 2018-04-10 14:02:24 +0200 |
| commit | c4869ca630a57f4269bb932ec7f719cef5bc79b8 (patch) | |
| tree | 9873717c1546b9598a067009bd2a0cbe1e01d146 /include/exec/memory-internal.h | |
| parent | hw/arm/integratorcp: Don't do things that could be fatal in the instance_init (diff) | |
| download | qemu-c4869ca630a57f4269bb932ec7f719cef5bc79b8.tar.gz qemu-c4869ca630a57f4269bb932ec7f719cef5bc79b8.tar.xz qemu-c4869ca630a57f4269bb932ec7f719cef5bc79b8.zip | |
target-arm: Check undefined opcodes for SWP in A32 decoder
Make sure we are not treating architecturally Undefined instructions
as a SWP, by verifying the opcodes as per section A8.8.229 of ARMv7-A
specification. Bits [21:20] must be zero for this to be a SWP or SWPB.
We also choose to UNDEF for the architecturally UNPREDICTABLE case of
bits [11:8] not being zero.
Signed-off-by: Onur Sahin <onursahin08@gmail.com>
[PMM: tweaked commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec/memory-internal.h')
0 files changed, 0 insertions, 0 deletions
