hw/dma: Add SiFive platform DMA controller emulation
[qemu/ar7.git] / target / arm / m-nocp.decode
blob7182d7d1217f730e3dbba87a79c95322cc5c662e
1 # M-profile UserFault.NOCP exception handling
3 #  Copyright (c) 2020 Linaro, Ltd
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 # This file is processed by scripts/decodetree.py
21 # For M-profile, the architecture specifies that NOCP UsageFaults
22 # should take precedence over UNDEF faults over the whole wide
23 # range of coprocessor-space encodings, with the exception of
24 # VLLDM and VLSTM. (Compare v8.1M IsCPInstruction() pseudocode and
25 # v8M Arm ARM rule R_QLGM.) This isn't mandatory for v8.0M but we choose
26 # to behave the same as v8.1M.
27 # This decode is handled before any others (and in particular before
28 # decoding FP instructions which are in the coprocessor space).
29 # If the coprocessor is not present or disabled then we will generate
30 # the NOCP exception; otherwise we let the insn through to the main decode.
33   # Special cases which do not take an early NOCP: VLLDM and VLSTM
34   VLLDM_VLSTM  1110 1100 001 l:1 rn:4 0000 1010 0000 0000
35   # TODO: VSCCLRM (new in v8.1M) is similar:
36   #VSCCLRM      1110 1100 1-01 1111 ---- 1011 ---- ---0
38   NOCP         111- 1110 ---- ---- ---- cp:4 ---- ----
39   NOCP         111- 110- ---- ---- ---- cp:4 ---- ----
40   # TODO: From v8.1M onwards we will also want this range to NOCP
41   #NOCP_8_1     111- 1111 ---- ---- ---- ---- ---- ---- cp=10