]> git.proxmox.com Git - mirror_qemu.git/blob - target/hexagon/attribs_def.h.inc
Merge remote-tracking branch 'remotes/quic/tags/pull-hex-20211103' into staging
[mirror_qemu.git] / target / hexagon / attribs_def.h.inc
1 /*
2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 /* Keep this as the first attribute: */
19 DEF_ATTRIB(AA_DUMMY, "Dummy Zeroth Attribute", "", "")
20
21 /* Misc */
22 DEF_ATTRIB(EXTENSION, "Extension instruction", "", "")
23
24 DEF_ATTRIB(PRIV, "Not available in user or guest mode", "", "")
25 DEF_ATTRIB(GUEST, "Not available in user mode", "", "")
26
27 DEF_ATTRIB(FPOP, "Floating Point Operation", "", "")
28
29 DEF_ATTRIB(EXTENDABLE, "Immediate may be extended", "", "")
30
31 DEF_ATTRIB(ARCHV2, "V2 architecture", "", "")
32 DEF_ATTRIB(ARCHV3, "V3 architecture", "", "")
33 DEF_ATTRIB(ARCHV4, "V4 architecture", "", "")
34 DEF_ATTRIB(ARCHV5, "V5 architecture", "", "")
35
36 DEF_ATTRIB(SUBINSN, "sub-instruction", "", "")
37
38 /* Load and Store attributes */
39 DEF_ATTRIB(LOAD, "Loads from memory", "", "")
40 DEF_ATTRIB(STORE, "Stores to memory", "", "")
41 DEF_ATTRIB(MEMLIKE, "Memory-like instruction", "", "")
42 DEF_ATTRIB(MEMLIKE_PACKET_RULES, "follows Memory-like packet rules", "", "")
43
44 /* V6 Vector attributes */
45 DEF_ATTRIB(CVI, "Executes on the HVX extension", "", "")
46
47 DEF_ATTRIB(CVI_NEW, "New value memory instruction executes on HVX", "", "")
48 DEF_ATTRIB(CVI_VM, "Memory instruction executes on HVX", "", "")
49 DEF_ATTRIB(CVI_VP, "Permute instruction executes on HVX", "", "")
50 DEF_ATTRIB(CVI_VP_VS, "Double vector permute/shft insn executes on HVX", "", "")
51 DEF_ATTRIB(CVI_VX, "Multiply instruction executes on HVX", "", "")
52 DEF_ATTRIB(CVI_VX_DV, "Double vector multiply insn executes on HVX", "", "")
53 DEF_ATTRIB(CVI_VS, "Shift instruction executes on HVX", "", "")
54 DEF_ATTRIB(CVI_VS_VX, "Permute/shift and multiply insn executes on HVX", "", "")
55 DEF_ATTRIB(CVI_VA, "ALU instruction executes on HVX", "", "")
56 DEF_ATTRIB(CVI_VA_DV, "Double vector alu instruction executes on HVX", "", "")
57 DEF_ATTRIB(CVI_4SLOT, "Consumes all the vector execution resources", "", "")
58 DEF_ATTRIB(CVI_TMP, "Transient Memory Load not written to register", "", "")
59 DEF_ATTRIB(CVI_GATHER, "CVI Gather operation", "", "")
60 DEF_ATTRIB(CVI_SCATTER, "CVI Scatter operation", "", "")
61 DEF_ATTRIB(CVI_SCATTER_RELEASE, "CVI Store Release for scatter", "", "")
62 DEF_ATTRIB(CVI_TMP_DST, "CVI instruction that doesn't write a register", "", "")
63 DEF_ATTRIB(CVI_SLOT23, "Can execute in slot 2 or slot 3 (HVX)", "", "")
64
65
66 /* Change-of-flow attributes */
67 DEF_ATTRIB(JUMP, "Jump-type instruction", "", "")
68 DEF_ATTRIB(INDIRECT, "Absolute register jump", "", "")
69 DEF_ATTRIB(CALL, "Function call instruction", "", "")
70 DEF_ATTRIB(COF, "Change-of-flow instruction", "", "")
71 DEF_ATTRIB(CONDEXEC, "May be cancelled by a predicate", "", "")
72 DEF_ATTRIB(DOTNEWVALUE, "Uses a register value generated in this pkt", "", "")
73 DEF_ATTRIB(NEWCMPJUMP, "Compound compare and jump", "", "")
74
75 /* access to implicit registers */
76 DEF_ATTRIB(IMPLICIT_WRITES_LR, "Writes the link register", "", "UREG.LR")
77 DEF_ATTRIB(IMPLICIT_WRITES_SP, "Writes the stack pointer", "", "UREG.SP")
78 DEF_ATTRIB(IMPLICIT_WRITES_FP, "Writes the frame pointer", "", "UREG.FP")
79 DEF_ATTRIB(IMPLICIT_WRITES_LC0, "Writes loop count for loop 0", "", "UREG.LC0")
80 DEF_ATTRIB(IMPLICIT_WRITES_LC1, "Writes loop count for loop 1", "", "UREG.LC1")
81 DEF_ATTRIB(IMPLICIT_WRITES_SA0, "Writes start addr for loop 0", "", "UREG.SA0")
82 DEF_ATTRIB(IMPLICIT_WRITES_SA1, "Writes start addr for loop 1", "", "UREG.SA1")
83 DEF_ATTRIB(IMPLICIT_WRITES_P0, "Writes Predicate 0", "", "UREG.P0")
84 DEF_ATTRIB(IMPLICIT_WRITES_P1, "Writes Predicate 1", "", "UREG.P1")
85 DEF_ATTRIB(IMPLICIT_WRITES_P2, "Writes Predicate 1", "", "UREG.P2")
86 DEF_ATTRIB(IMPLICIT_WRITES_P3, "May write Predicate 3", "", "UREG.P3")
87 DEF_ATTRIB(IMPLICIT_READS_PC, "Reads the PC register", "", "")
88 DEF_ATTRIB(IMPLICIT_WRITES_USR, "May write USR", "", "")
89 DEF_ATTRIB(WRITES_PRED_REG, "Writes a predicate register", "", "")
90
91 DEF_ATTRIB(CRSLOT23, "Can execute in slot 2 or slot 3 (CR)", "", "")
92 DEF_ATTRIB(IT_NOP, "nop instruction", "", "")
93 DEF_ATTRIB(IT_EXTENDER, "constant extender instruction", "", "")
94
95
96 /* Restrictions to make note of */
97 DEF_ATTRIB(RESTRICT_SLOT0ONLY, "Must execute on slot0", "", "")
98 DEF_ATTRIB(RESTRICT_SLOT1ONLY, "Must execute on slot1", "", "")
99 DEF_ATTRIB(RESTRICT_SLOT2ONLY, "Must execute on slot2", "", "")
100 DEF_ATTRIB(RESTRICT_SLOT3ONLY, "Must execute on slot3", "", "")
101 DEF_ATTRIB(RESTRICT_NOSLOT1, "No slot 1 instruction in parallel", "", "")
102 DEF_ATTRIB(RESTRICT_PREFERSLOT0, "Try to encode into slot 0", "", "")
103
104 DEF_ATTRIB(ICOP, "Instruction cache op", "", "")
105
106 DEF_ATTRIB(HWLOOP0_END, "Ends HW loop0", "", "")
107 DEF_ATTRIB(HWLOOP1_END, "Ends HW loop1", "", "")
108 DEF_ATTRIB(DCZEROA, "dczeroa type", "", "")
109 DEF_ATTRIB(ICFLUSHOP, "icflush op type", "", "")
110 DEF_ATTRIB(DCFLUSHOP, "dcflush op type", "", "")
111 DEF_ATTRIB(L2FLUSHOP, "l2flush op type", "", "")
112 DEF_ATTRIB(DCFETCH, "dcfetch type", "", "")
113
114 DEF_ATTRIB(L2FETCH, "Instruction is l2fetch type", "", "")
115
116 DEF_ATTRIB(ICINVA, "icinva", "", "")
117 DEF_ATTRIB(DCCLEANINVA, "dccleaninva", "", "")
118
119 /* Keep this as the last attribute: */
120 DEF_ATTRIB(ZZ_LASTATTRIB, "Last attribute in the file", "", "")