VirtualBox

source: vbox/trunk/include/VBox/disopcode-armv8.h@ 106631

Last change on this file since 106631 was 106631, checked in by vboxsync, 5 weeks ago

Disassembler: Decode data processing 1-source instructions, bugref:10394

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.8 KB
Line 
1/** @file
2 * Disassembler - Opcodes
3 */
4
5/*
6 * Copyright (C) 2023-2024 Oracle and/or its affiliates.
7 *
8 * This file is part of VirtualBox base platform packages, as
9 * available from https://www.virtualbox.org.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, in version 3 of the
14 * License.
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, see <https://www.gnu.org/licenses>.
23 *
24 * The contents of this file may alternatively be used under the terms
25 * of the Common Development and Distribution License Version 1.0
26 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
27 * in the VirtualBox distribution, in which case the provisions of the
28 * CDDL are applicable instead of those of the GPL.
29 *
30 * You may elect to license modified versions of this file under the
31 * terms and conditions of either the GPL or the CDDL or both.
32 *
33 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
34 */
35
36#ifndef VBOX_INCLUDED_disopcode_armv8_h
37#define VBOX_INCLUDED_disopcode_armv8_h
38#ifndef RT_WITHOUT_PRAGMA_ONCE
39# pragma once
40#endif
41
42#include <iprt/assert.h>
43
44/** @defgroup grp_dis_opcodes_armv8 Opcodes (DISOPCODE::uOpCode)
45 * @ingroup grp_dis
46 * @{
47 */
48enum OPCODESARMV8
49{
50 /** @name Full ARMv8 AArch64 opcode list.
51 * @{ */
52 OP_ARMV8_INVALID = 0,
53 OP_ARMV8_A64_ABS,
54 OP_ARMV8_A64_ADC,
55 OP_ARMV8_A64_ADCS,
56 OP_ARMV8_A64_ADD,
57 OP_ARMV8_A64_ADDG,
58 OP_ARMV8_A64_ADDS,
59 OP_ARMV8_A64_ADR,
60 OP_ARMV8_A64_ADRP,
61 OP_ARMV8_A64_AND,
62 OP_ARMV8_A64_ANDS,
63 OP_ARMV8_A64_ASR,
64 OP_ARMV8_A64_ASRV,
65 OP_ARMV8_A64_AT,
66 OP_ARMV8_A64_AUTDA,
67 OP_ARMV8_A64_AUTDZA,
68 OP_ARMV8_A64_AUTDB,
69 OP_ARMV8_A64_AUTDZB,
70 OP_ARMV8_A64_AUTIA,
71 OP_ARMV8_A64_AUTIA1716,
72 OP_ARMV8_A64_AUTIASP,
73 OP_ARMV8_A64_AUTIAZ,
74 OP_ARMV8_A64_AUTIZA,
75 OP_ARMV8_A64_AUTIB,
76 OP_ARMV8_A64_AUTIB1716,
77 OP_ARMV8_A64_AUTIBSP,
78 OP_ARMV8_A64_AUTIBZ,
79 OP_ARMV8_A64_AUTIZB,
80 OP_ARMV8_A64_AXFLAG,
81 OP_ARMV8_A64_B,
82 OP_ARMV8_A64_BC,
83 OP_ARMV8_A64_BFC,
84 OP_ARMV8_A64_BFI,
85 OP_ARMV8_A64_BFM,
86 OP_ARMV8_A64_BFXIL,
87 OP_ARMV8_A64_BIC,
88 OP_ARMV8_A64_BICS,
89 OP_ARMV8_A64_BL,
90 OP_ARMV8_A64_BLR,
91 OP_ARMV8_A64_BLRAA,
92 OP_ARMV8_A64_BLRAAZ,
93 OP_ARMV8_A64_BLRAB,
94 OP_ARMV8_A64_BLRABZ,
95 OP_ARMV8_A64_BR,
96 OP_ARMV8_A64_BRAA,
97 OP_ARMV8_A64_BRAAZ,
98 OP_ARMV8_A64_BRAB,
99 OP_ARMV8_A64_BRABZ,
100 OP_ARMV8_A64_BRB,
101 OP_ARMV8_A64_BRK,
102 OP_ARMV8_A64_BTI,
103 OP_ARMV8_A64_CASB,
104 OP_ARMV8_A64_CASAB,
105 OP_ARMV8_A64_CASALB,
106 OP_ARMV8_A64_CASLB,
107 OP_ARMV8_A64_CASH,
108 OP_ARMV8_A64_CASAH,
109 OP_ARMV8_A64_CASALH,
110 OP_ARMV8_A64_CASLH,
111 OP_ARMV8_A64_CASP,
112 OP_ARMV8_A64_CASPA,
113 OP_ARMV8_A64_CASPAL,
114 OP_ARMV8_A64_CASPL,
115 OP_ARMV8_A64_CAS,
116 OP_ARMV8_A64_CASA,
117 OP_ARMV8_A64_CASAL,
118 OP_ARMV8_A64_CASL,
119 OP_ARMV8_A64_CBNZ,
120 OP_ARMV8_A64_CBZ,
121 OP_ARMV8_A64_CCMN,
122 OP_ARMV8_A64_CCMP,
123 OP_ARMV8_A64_CFINV,
124 OP_ARMV8_A64_CFP,
125 OP_ARMV8_A64_CINC,
126 OP_ARMV8_A64_CINV,
127 OP_ARMV8_A64_CLREX,
128 OP_ARMV8_A64_CLS,
129 OP_ARMV8_A64_CLZ,
130 OP_ARMV8_A64_CMN,
131 OP_ARMV8_A64_CMP,
132 OP_ARMV8_A64_CMPP,
133 OP_ARMV8_A64_CNEG,
134 OP_ARMV8_A64_CNT,
135 OP_ARMV8_A64_CPP,
136 /** @todo FEAT_MOPS instructions (CPYFP and friends). */
137 OP_ARMV8_A64_CRC32B,
138 OP_ARMV8_A64_CRC32H,
139 OP_ARMV8_A64_CRC32W,
140 OP_ARMV8_A64_CRC32X,
141 OP_ARMV8_A64_CRC32CB,
142 OP_ARMV8_A64_CRC32CH,
143 OP_ARMV8_A64_CRC32CW,
144 OP_ARMV8_A64_CRC32CX,
145 OP_ARMV8_A64_CSDB,
146 OP_ARMV8_A64_CSEL,
147 OP_ARMV8_A64_CSET,
148 OP_ARMV8_A64_CSETM,
149 OP_ARMV8_A64_CSINC,
150 OP_ARMV8_A64_CSNEG,
151 OP_ARMV8_A64_CTZ,
152 OP_ARMV8_A64_DC,
153 OP_ARMV8_A64_DCPS1,
154 OP_ARMV8_A64_DCPS2,
155 OP_ARMV8_A64_DCPS3,
156 OP_ARMV8_A64_DGH,
157 OP_ARMV8_A64_DMB,
158 OP_ARMV8_A64_DRPS,
159 OP_ARMV8_A64_DSB,
160 OP_ARMV8_A64_DVP,
161 OP_ARMV8_A64_EON,
162 OP_ARMV8_A64_EOR,
163 OP_ARMV8_A64_ERET,
164 OP_ARMV8_A64_ERETAA,
165 OP_ARMV8_A64_ERETAB,
166 OP_ARMV8_A64_ESB,
167 OP_ARMV8_A64_EXTR,
168 OP_ARMV8_A64_FABS,
169 OP_ARMV8_A64_FADD,
170 OP_ARMV8_A64_FCCMP,
171 OP_ARMV8_A64_FCCMPE,
172 OP_ARMV8_A64_FCMP,
173 OP_ARMV8_A64_FCMPE,
174 OP_ARMV8_A64_FCSEL,
175 OP_ARMV8_A64_FCVT,
176 OP_ARMV8_A64_FCVTZS,
177 OP_ARMV8_A64_FCVTZU,
178 OP_ARMV8_A64_FDIV,
179 OP_ARMV8_A64_FMADD,
180 OP_ARMV8_A64_FMAX,
181 OP_ARMV8_A64_FMAXNM,
182 OP_ARMV8_A64_FMIN,
183 OP_ARMV8_A64_FMINNM,
184 OP_ARMV8_A64_FMOV,
185 OP_ARMV8_A64_FMSUB,
186 OP_ARMV8_A64_FMUL,
187 OP_ARMV8_A64_FNEG,
188 OP_ARMV8_A64_FNMADD,
189 OP_ARMV8_A64_FNMSUB,
190 OP_ARMV8_A64_FNMUL,
191 OP_ARMV8_A64_FRINT32X,
192 OP_ARMV8_A64_FRINT32Z,
193 OP_ARMV8_A64_FRINT64X,
194 OP_ARMV8_A64_FRINT64Z,
195 OP_ARMV8_A64_FRINTA,
196 OP_ARMV8_A64_FRINTI,
197 OP_ARMV8_A64_FRINTM,
198 OP_ARMV8_A64_FRINTN,
199 OP_ARMV8_A64_FRINTP,
200 OP_ARMV8_A64_FRINTX,
201 OP_ARMV8_A64_FRINTZ,
202 OP_ARMV8_A64_FSQRT,
203 OP_ARMV8_A64_FSUB,
204 OP_ARMV8_A64_GMI,
205 OP_ARMV8_A64_HINT,
206 OP_ARMV8_A64_HLT,
207 OP_ARMV8_A64_HVC,
208 OP_ARMV8_A64_IC,
209 OP_ARMV8_A64_IRG,
210 OP_ARMV8_A64_ISB,
211 OP_ARMV8_A64_LD64B,
212 OP_ARMV8_A64_LDADDB,
213 OP_ARMV8_A64_LDADDAB,
214 OP_ARMV8_A64_LDADDALB,
215 OP_ARMV8_A64_LDADDLB,
216 OP_ARMV8_A64_LDADDH,
217 OP_ARMV8_A64_LDADDAH,
218 OP_ARMV8_A64_LDADDALH,
219 OP_ARMV8_A64_LDADDLH,
220 OP_ARMV8_A64_LDADD,
221 OP_ARMV8_A64_LDADDA,
222 OP_ARMV8_A64_LDADDAL,
223 OP_ARMV8_A64_LDADDL,
224 OP_ARMV8_A64_LDAPR,
225 OP_ARMV8_A64_LDAPRB,
226 OP_ARMV8_A64_LDAPRH,
227 OP_ARMV8_A64_LDAPUR,
228 OP_ARMV8_A64_LDAPURB,
229 OP_ARMV8_A64_LDAPURH,
230 OP_ARMV8_A64_LDAPURSB,
231 OP_ARMV8_A64_LDAPURSH,
232 OP_ARMV8_A64_LDAPURSW,
233 OP_ARMV8_A64_LDAR,
234 OP_ARMV8_A64_LDARB,
235 OP_ARMV8_A64_LDARH,
236 OP_ARMV8_A64_LDAXP,
237 OP_ARMV8_A64_LDAXRB,
238 OP_ARMV8_A64_LDAXRH,
239 OP_ARMV8_A64_LDCLRB,
240 OP_ARMV8_A64_LDCLRAB,
241 OP_ARMV8_A64_LDCLRALB,
242 OP_ARMV8_A64_LDCLRLB,
243 OP_ARMV8_A64_LDCLRH,
244 OP_ARMV8_A64_LDCLRAH,
245 OP_ARMV8_A64_LDCLRALH,
246 OP_ARMV8_A64_LDCLRLH,
247 OP_ARMV8_A64_LDCLR,
248 OP_ARMV8_A64_LDCLRA,
249 OP_ARMV8_A64_LDCLRAL,
250 OP_ARMV8_A64_LDCLRL,
251 OP_ARMV8_A64_LDEORB,
252 OP_ARMV8_A64_LDEORAB,
253 OP_ARMV8_A64_LDEORALB,
254 OP_ARMV8_A64_LDEORLB,
255 OP_ARMV8_A64_LDEORH,
256 OP_ARMV8_A64_LDEORAH,
257 OP_ARMV8_A64_LDEORALH,
258 OP_ARMV8_A64_LDEORLH,
259 OP_ARMV8_A64_LDEOR,
260 OP_ARMV8_A64_LDEORA,
261 OP_ARMV8_A64_LDEORAL,
262 OP_ARMV8_A64_LDEORL,
263 OP_ARMV8_A64_LDG,
264 OP_ARMV8_A64_LDGM,
265 OP_ARMV8_A64_LDLARB,
266 OP_ARMV8_A64_LDLARH,
267 OP_ARMV8_A64_LDLAR,
268 OP_ARMV8_A64_LDNP,
269 OP_ARMV8_A64_LDP,
270 OP_ARMV8_A64_LDPSW,
271 OP_ARMV8_A64_LDR,
272 OP_ARMV8_A64_LDRAA,
273 OP_ARMV8_A64_LDRAB,
274 OP_ARMV8_A64_LDRB,
275 OP_ARMV8_A64_LDRH,
276 OP_ARMV8_A64_LDRSB,
277 OP_ARMV8_A64_LDRSH,
278 OP_ARMV8_A64_LDRSW,
279 OP_ARMV8_A64_LDSETB,
280 OP_ARMV8_A64_LDSETAB,
281 OP_ARMV8_A64_LDSETALB,
282 OP_ARMV8_A64_LDSETLB,
283 OP_ARMV8_A64_LDSETH,
284 OP_ARMV8_A64_LDSETAH,
285 OP_ARMV8_A64_LDSETALH,
286 OP_ARMV8_A64_LDSETLH,
287 OP_ARMV8_A64_LDSET,
288 OP_ARMV8_A64_LDSETA,
289 OP_ARMV8_A64_LDSETAL,
290 OP_ARMV8_A64_LDSETL,
291 OP_ARMV8_A64_LDSMAB,
292 OP_ARMV8_A64_LDSMAXAB,
293 OP_ARMV8_A64_LDSMAXALB,
294 OP_ARMV8_A64_LDSMAXLB,
295 OP_ARMV8_A64_LDSMAXH,
296 OP_ARMV8_A64_LDSMAXAH,
297 OP_ARMV8_A64_LDSMAXALH,
298 OP_ARMV8_A64_LDSMAXLH,
299 OP_ARMV8_A64_LDSMAX,
300 OP_ARMV8_A64_LDSMAXA,
301 OP_ARMV8_A64_LDSMAXAL,
302 OP_ARMV8_A64_LDSMAXL,
303 OP_ARMV8_A64_LDSMINB,
304 OP_ARMV8_A64_LDSMINAB,
305 OP_ARMV8_A64_LDSMINALB,
306 OP_ARMV8_A64_LDSMINLB,
307 OP_ARMV8_A64_LDSMINH,
308 OP_ARMV8_A64_LDSMINAH,
309 OP_ARMV8_A64_LDSMINALH,
310 OP_ARMV8_A64_LDSMINLH,
311 OP_ARMV8_A64_LDSMIN,
312 OP_ARMV8_A64_LDSMINA,
313 OP_ARMV8_A64_LDSMINAL,
314 OP_ARMV8_A64_LDSMINL,
315 OP_ARMV8_A64_LDTR,
316 OP_ARMV8_A64_LDTRB,
317 OP_ARMV8_A64_LDTRH,
318 OP_ARMV8_A64_LDTRSB,
319 OP_ARMV8_A64_LDTRSH,
320 OP_ARMV8_A64_LDTRSW,
321 OP_ARMV8_A64_LDUMAXB,
322 OP_ARMV8_A64_LDUMAXAB,
323 OP_ARMV8_A64_LDUMAXALB,
324 OP_ARMV8_A64_LDUMAXLB,
325 OP_ARMV8_A64_LDUMAXH,
326 OP_ARMV8_A64_LDUMAXAH,
327 OP_ARMV8_A64_LDUMAXALH,
328 OP_ARMV8_A64_LDUMAXLH,
329 OP_ARMV8_A64_LDUMAX,
330 OP_ARMV8_A64_LDUMAXA,
331 OP_ARMV8_A64_LDUMAXAL,
332 OP_ARMV8_A64_LDUMAXL,
333 OP_ARMV8_A64_LDUMINB,
334 OP_ARMV8_A64_LDUMINAB,
335 OP_ARMV8_A64_LDUMINALB,
336 OP_ARMV8_A64_LDUMINLB,
337 OP_ARMV8_A64_LDUMINH,
338 OP_ARMV8_A64_LDUMINAH,
339 OP_ARMV8_A64_LDUMINALH,
340 OP_ARMV8_A64_LDUMINLH,
341 OP_ARMV8_A64_LDUMIN,
342 OP_ARMV8_A64_LDUMINA,
343 OP_ARMV8_A64_LDUMINAL,
344 OP_ARMV8_A64_LDUMINL,
345 OP_ARMV8_A64_LDUR,
346 OP_ARMV8_A64_LDURB,
347 OP_ARMV8_A64_LDURH,
348 OP_ARMV8_A64_LDURSB,
349 OP_ARMV8_A64_LDURSH,
350 OP_ARMV8_A64_LDURSW,
351 OP_ARMV8_A64_LDXP,
352 OP_ARMV8_A64_LDXR,
353 OP_ARMV8_A64_LDXRB,
354 OP_ARMV8_A64_LDXRH,
355 OP_ARMV8_A64_LSL,
356 OP_ARMV8_A64_LSLV,
357 OP_ARMV8_A64_LSR,
358 OP_ARMV8_A64_LSRV,
359 OP_ARMV8_A64_MADD,
360 OP_ARMV8_A64_MNEG,
361 OP_ARMV8_A64_MOV,
362 OP_ARMV8_A64_MOVK,
363 OP_ARMV8_A64_MOVN,
364 OP_ARMV8_A64_MOVZ,
365 OP_ARMV8_A64_MRS,
366 OP_ARMV8_A64_MSR,
367 OP_ARMV8_A64_MSUB,
368 OP_ARMV8_A64_MUL,
369 OP_ARMV8_A64_MVN,
370 OP_ARMV8_A64_NEG,
371 OP_ARMV8_A64_NEGS,
372 OP_ARMV8_A64_NGC,
373 OP_ARMV8_A64_NGCS,
374 OP_ARMV8_A64_NOP,
375 OP_ARMV8_A64_ORR,
376 OP_ARMV8_A64_ORN,
377 OP_ARMV8_A64_PACDA,
378 OP_ARMV8_A64_PACDZA,
379 OP_ARMV8_A64_PACDB,
380 OP_ARMV8_A64_PACDZB,
381 OP_ARMV8_A64_PACGA,
382 OP_ARMV8_A64_PACIA,
383 OP_ARMV8_A64_PACIA1716,
384 OP_ARMV8_A64_PACIASP,
385 OP_ARMV8_A64_PACIAZ,
386 OP_ARMV8_A64_PACIZA,
387 OP_ARMV8_A64_PACIB,
388 OP_ARMV8_A64_PACIB1716,
389 OP_ARMV8_A64_PACIBSP,
390 OP_ARMV8_A64_PACIBZ,
391 OP_ARMV8_A64_PACIBZB,
392 OP_ARMV8_A64_PRFM,
393 OP_ARMV8_A64_PRFUM,
394 OP_ARMV8_A64_PSBSYNC,
395 OP_ARMV8_A64_PSSBB,
396 OP_ARMV8_A64_RBIT,
397 OP_ARMV8_A64_RET,
398 OP_ARMV8_A64_RETAA,
399 OP_ARMV8_A64_RETAB,
400 OP_ARMV8_A64_REV,
401 OP_ARMV8_A64_REV16,
402 OP_ARMV8_A64_REV32,
403 OP_ARMV8_A64_RMIF,
404 OP_ARMV8_A64_ROR,
405 OP_ARMV8_A64_RORV,
406 OP_ARMV8_A64_SB,
407 OP_ARMV8_A64_SBC,
408 OP_ARMV8_A64_SBCS,
409 OP_ARMV8_A64_SBFIZ,
410 OP_ARMV8_A64_SBFM,
411 OP_ARMV8_A64_SBFX,
412 OP_ARMV8_A64_SCVTF,
413 OP_ARMV8_A64_SDIV,
414 OP_ARMV8_A64_SETF8,
415 OP_ARMV8_A64_SETF16,
416 OP_ARMV8_A64_SETGP,
417 OP_ARMV8_A64_SETGM,
418 OP_ARMV8_A64_SETGE,
419 OP_ARMV8_A64_SETGPN,
420 OP_ARMV8_A64_SETGMN,
421 OP_ARMV8_A64_SETGEN,
422 OP_ARMV8_A64_SETGPT,
423 OP_ARMV8_A64_SETGMT,
424 OP_ARMV8_A64_SETGET,
425 OP_ARMV8_A64_SETGPTN,
426 OP_ARMV8_A64_SETGMTN,
427 OP_ARMV8_A64_SETGETN,
428 OP_ARMV8_A64_SETP,
429 OP_ARMV8_A64_SETM,
430 OP_ARMV8_A64_SETE,
431 OP_ARMV8_A64_SETPN,
432 OP_ARMV8_A64_SETMNM,
433 OP_ARMV8_A64_SETEN,
434 OP_ARMV8_A64_SETPT,
435 OP_ARMV8_A64_SETMT,
436 OP_ARMV8_A64_SETET,
437 OP_ARMV8_A64_SETPTN,
438 OP_ARMV8_A64_SETMTN,
439 OP_ARMV8_A64_SETETN,
440 OP_ARMV8_A64_SEV,
441 OP_ARMV8_A64_SEVL,
442 OP_ARMV8_A64_SHL,
443 OP_ARMV8_A64_SMADDL,
444 OP_ARMV8_A64_SMAX,
445 OP_ARMV8_A64_SMC,
446 OP_ARMV8_A64_SMIN,
447 OP_ARMV8_A64_SMNEGL,
448 OP_ARMV8_A64_SMSTART,
449 OP_ARMV8_A64_SMSTOP,
450 OP_ARMV8_A64_SMSUBL,
451 OP_ARMV8_A64_SMULH,
452 OP_ARMV8_A64_SMULL,
453 OP_ARMV8_A64_SQRSHRN,
454 OP_ARMV8_A64_SQSHL,
455 OP_ARMV8_A64_SQSHRN,
456 OP_ARMV8_A64_SRSHR,
457 OP_ARMV8_A64_SRSRA,
458 OP_ARMV8_A64_SSBB,
459 OP_ARMV8_A64_SSHR,
460 OP_ARMV8_A64_SSRA,
461 OP_ARMV8_A64_ST2G,
462 OP_ARMV8_A64_ST64B,
463 OP_ARMV8_A64_ST64BV0,
464 OP_ARMV8_A64_STADDB,
465 OP_ARMV8_A64_STADDLB,
466 OP_ARMV8_A64_STADDH,
467 OP_ARMV8_A64_STADDLH,
468 OP_ARMV8_A64_STADD,
469 OP_ARMV8_A64_STADDL,
470 OP_ARMV8_A64_STCLRB,
471 OP_ARMV8_A64_STCLRLB,
472 OP_ARMV8_A64_STCLRH,
473 OP_ARMV8_A64_STCLRLH,
474 OP_ARMV8_A64_STCLR,
475 OP_ARMV8_A64_STCLRL,
476 OP_ARMV8_A64_STEORB,
477 OP_ARMV8_A64_STEROLB,
478 OP_ARMV8_A64_STEORH,
479 OP_ARMV8_A64_STEORLH,
480 OP_ARMV8_A64_STEOR,
481 OP_ARMV8_A64_STEORL,
482 OP_ARMV8_A64_STG,
483 OP_ARMV8_A64_STGM,
484 OP_ARMV8_A64_STGP,
485 OP_ARMV8_A64_STLLRB,
486 OP_ARMV8_A64_STLLRH,
487 OP_ARMV8_A64_STLLR,
488 OP_ARMV8_A64_STLR,
489 OP_ARMV8_A64_STLRB,
490 OP_ARMV8_A64_STLRH,
491 OP_ARMV8_A64_STLUR,
492 OP_ARMV8_A64_STLURB,
493 OP_ARMV8_A64_STLURH,
494 OP_ARMV8_A64_STLXP,
495 OP_ARMV8_A64_STLXR,
496 OP_ARMV8_A64_STLXRB,
497 OP_ARMV8_A64_STLXRH,
498 OP_ARMV8_A64_STNP,
499 OP_ARMV8_A64_STP,
500 OP_ARMV8_A64_STR,
501 OP_ARMV8_A64_STRB,
502 OP_ARMV8_A64_STRH,
503 OP_ARMV8_A64_STTR,
504 OP_ARMV8_A64_STTRB,
505 OP_ARMV8_A64_STTRH,
506 OP_ARMV8_A64_STUR,
507 OP_ARMV8_A64_STURB,
508 OP_ARMV8_A64_STURH,
509 OP_ARMV8_A64_STXP,
510 OP_ARMV8_A64_STXR,
511 OP_ARMV8_A64_STXRB,
512 OP_ARMV8_A64_STXRH,
513 OP_ARMV8_A64_STZ2G,
514 OP_ARMV8_A64_STZG,
515 OP_ARMV8_A64_STZGM,
516 OP_ARMV8_A64_SUB,
517 OP_ARMV8_A64_SUBG,
518 OP_ARMV8_A64_SUBPS,
519 OP_ARMV8_A64_SUBS,
520 OP_ARMV8_A64_SUBP,
521 OP_ARMV8_A64_SVC,
522 OP_ARMV8_A64_SWPB,
523 OP_ARMV8_A64_SWPAB,
524 OP_ARMV8_A64_SWPALB,
525 OP_ARMV8_A64_SWPLB,
526 OP_ARMV8_A64_SWPH,
527 OP_ARMV8_A64_SWPAH,
528 OP_ARMV8_A64_SWPALH,
529 OP_ARMV8_A64_SWPLH,
530 OP_ARMV8_A64_SWP,
531 OP_ARMV8_A64_SWPA,
532 OP_ARMV8_A64_SWPAL,
533 OP_ARMV8_A64_SWPL,
534 OP_ARMV8_A64_SXTB,
535 OP_ARMV8_A64_SXTH,
536 OP_ARMV8_A64_SXTW,
537 OP_ARMV8_A64_SYS,
538 OP_ARMV8_A64_SYSL,
539 OP_ARMV8_A64_TBNZ,
540 OP_ARMV8_A64_TBZ,
541 OP_ARMV8_A64_TCANCEL,
542 OP_ARMV8_A64_TCOMMIT,
543 OP_ARMV8_A64_TLBI,
544 OP_ARMV8_A64_TSTART,
545 OP_ARMV8_A64_TTEST,
546 OP_ARMV8_A64_TSBCSYNC,
547 OP_ARMV8_A64_TST,
548 OP_ARMV8_A64_UBFIZ,
549 OP_ARMV8_A64_UBFM,
550 OP_ARMV8_A64_UBFX,
551 OP_ARMV8_A64_UCVTF,
552 OP_ARMV8_A64_UDF,
553 OP_ARMV8_A64_UDIV,
554 OP_ARMV8_A64_UMADDL,
555 OP_ARMV8_A64_UMAX,
556 OP_ARMV8_A64_UMIN,
557 OP_ARMV8_A64_UMNEGL,
558 OP_ARMV8_A64_UMSUBL,
559 OP_ARMV8_A64_UMULH,
560 OP_ARMV8_A64_UMULL,
561 OP_ARMV8_A64_UXTB,
562 OP_ARMV8_A64_UXTH,
563 OP_ARMV8_A64_WFE,
564 OP_ARMV8_A64_WFET,
565 OP_ARMV8_A64_WFI,
566 OP_ARMV8_A64_WFIT,
567 OP_ARMV8_A64_XAFLAG,
568 OP_ARMV8_A64_XPACD,
569 OP_ARMV8_A64_XPACI,
570 OP_ARMV8_A64_XPACLRI,
571 OP_ARMV8_A64_YIELD,
572 /** @} */
573
574 OP_ARMV8_END_OF_OPCODES
575};
576
577
578/** Armv8 Condition codes. */
579typedef enum DISARMV8INSTRCOND
580{
581 kDisArmv8InstrCond_Eq = 0, /**< 0 - Equal - Zero set. */
582 kDisArmv8InstrCond_Ne, /**< 1 - Not equal - Zero clear. */
583
584 kDisArmv8InstrCond_Cs, /**< 2 - Carry set (also known as 'HS'). */
585 kDisArmv8InstrCond_Hs = kDisArmv8InstrCond_Cs, /**< 2 - Unsigned higher or same. */
586 kDisArmv8InstrCond_Cc, /**< 3 - Carry clear (also known as 'LO'). */
587 kDisArmv8InstrCond_Lo = kDisArmv8InstrCond_Cc, /**< 3 - Unsigned lower. */
588
589 kDisArmv8InstrCond_Mi, /**< 4 - Negative result (minus). */
590 kDisArmv8InstrCond_Pl, /**< 5 - Positive or zero result (plus). */
591
592 kDisArmv8InstrCond_Vs, /**< 6 - Overflow set. */
593 kDisArmv8InstrCond_Vc, /**< 7 - Overflow clear. */
594
595 kDisArmv8InstrCond_Hi, /**< 8 - Unsigned higher. */
596 kDisArmv8InstrCond_Ls, /**< 9 - Unsigned lower or same. */
597
598 kDisArmv8InstrCond_Ge, /**< a - Signed greater or equal. */
599 kDisArmv8InstrCond_Lt, /**< b - Signed less than. */
600
601 kDisArmv8InstrCond_Gt, /**< c - Signed greater than. */
602 kDisArmv8InstrCond_Le, /**< d - Signed less or equal. */
603
604 kDisArmv8InstrCond_Al, /**< e - Condition is always true. */
605 kDisArmv8InstrCond_Al1 /**< f - Condition is always true. */
606} DISARMV8INSTRCOND;
607
608
609/** Armv8 PState fields. */
610typedef enum DISARMV8INSTRPSTATE
611{
612 kDisArmv8InstrPState_SPSel = 0,
613 kDisArmv8InstrPState_DAIFSet,
614 kDisArmv8InstrPState_DAIFClr,
615 kDisArmv8InstrPState_UAO,
616 kDisArmv8InstrPState_PAN,
617 kDisArmv8InstrPState_ALLINT,
618 kDisArmv8InstrPState_PM,
619 kDisArmv8InstrPState_SSBS,
620 kDisArmv8InstrPState_DIT,
621 kDisArmv8InstrPState_SVCRSM,
622 kDisArmv8InstrPState_SVCRZA,
623 kDisArmv8InstrPState_SVCRSMZA,
624 kDisArmv8InstrPState_TCO
625} DISARMV8INSTRPSTATE;
626
627
628/**
629 * Floating point types.
630 */
631typedef enum DISARMV8INSTRFPTYPE
632{
633 kDisArmv8InstrFpType_Invalid = 0,
634 kDisArmv8InstrFpType_Single,
635 kDisArmv8InstrFpType_Double,
636 kDisArmv8InstrFpType_Half
637} DISARMV8INSTRFPTYPE;
638
639
640/** @defgroup grp_dis_opparam_armv8 Opcode parameters (DISOPCODE::fParam1,
641 * DISOPCODE::fParam2, DISOPCODE::fParam3)
642 * @ingroup grp_dis
643 * @{
644 */
645
646/**
647 * Basic parameter type.
648 */
649typedef enum DISARMV8OPPARM
650{
651 /** Parameter is not used. */
652 kDisArmv8OpParmNone = 0,
653 /** Immediate value. */
654 kDisArmv8OpParmImm,
655 /** Relative address immediate. */
656 kDisArmv8OpParmImmRel,
657 /** Register. */
658 kDisArmv8OpParmReg,
659 /** System register. */
660 kDisArmv8OpParmSysReg,
661 /** Accessing memory from address in base register + potential offset. */
662 kDisArmv8OpParmAddrInGpr,
663 /** Conditional as parameter (CCMN/CCMP). */
664 kDisArmv8OpParmCond,
665 /** PSTATE field (specific to MSR). */
666 kDisArmv8OpParmPState
667} DISARMV8OPPARM;
668
669
670/**
671 * Extend types.
672 */
673typedef enum DISARMV8OPPARMEXTEND
674{
675 /** No shift applied. */
676 kDisArmv8OpParmExtendNone = 0,
677 /** Left shift applied. */
678 kDisArmv8OpParmExtendLsl,
679 /** Right shift applied. */
680 kDisArmv8OpParmExtendLsr,
681 /** Arithmetic right shift applied. */
682 kDisArmv8OpParmExtendAsr,
683 /** Rotation applied. */
684 kDisArmv8OpParmExtendRor,
685 /** @todo Document. */
686 kDisArmv8OpParmExtendUxtB,
687 kDisArmv8OpParmExtendUxtH,
688 kDisArmv8OpParmExtendUxtW,
689 kDisArmv8OpParmExtendUxtX,
690 kDisArmv8OpParmExtendSxtB,
691 kDisArmv8OpParmExtendSxtH,
692 kDisArmv8OpParmExtendSxtW,
693 kDisArmv8OpParmExtendSxtX
694} DISARMV8OPPARMEXTEND;
695/** @} */
696
697/** @} */
698
699#endif /* !VBOX_INCLUDED_disopcode_armv8_h */
700
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette