Commit 1412010
target/arm: Allow ARMv6-M Thumb2 instructions
ARMv6-M supports 6 Thumb2 instructions. This patch checks for these
instructions and allows their execution.
Like Thumb2 cores, ARMv6-M always interprets BL instruction as 32-bit.
This patch is required for future Cortex-M0 support.
Signed-off-by: Julia Suvorova <jusual@mail.ru>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20180612204632.28780-1-jusual@mail.ru
[PMM: move armv6m_insn[] and armv6m_mask[] closer to
point of use, and mark 'const'. Check for M-and-not-v7
rather than M-and-6.]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>1 parent 1f871c5 commit 1412010
1 file changed
+38
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9965 | 9965 | | |
9966 | 9966 | | |
9967 | 9967 | | |
9968 | | - | |
| 9968 | + | |
| 9969 | + | |
9969 | 9970 | | |
9970 | 9971 | | |
9971 | 9972 | | |
| |||
10085 | 10086 | | |
10086 | 10087 | | |
10087 | 10088 | | |
10088 | | - | |
10089 | | - | |
| 10089 | + | |
| 10090 | + | |
| 10091 | + | |
| 10092 | + | |
10090 | 10093 | | |
10091 | | - | |
| 10094 | + | |
| 10095 | + | |
| 10096 | + | |
| 10097 | + | |
| 10098 | + | |
| 10099 | + | |
| 10100 | + | |
| 10101 | + | |
| 10102 | + | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
| 10111 | + | |
| 10112 | + | |
| 10113 | + | |
| 10114 | + | |
| 10115 | + | |
| 10116 | + | |
| 10117 | + | |
| 10118 | + | |
| 10119 | + | |
| 10120 | + | |
10092 | 10121 | | |
10093 | 10122 | | |
10094 | 10123 | | |
| |||
11009 | 11038 | | |
11010 | 11039 | | |
11011 | 11040 | | |
11012 | | - | |
| 11041 | + | |
| 11042 | + | |
| 11043 | + | |
| 11044 | + | |
| 11045 | + | |
11013 | 11046 | | |
11014 | 11047 | | |
11015 | 11048 | | |
| |||
0 commit comments