1 | /*
|
---|
2 | * Autogenerated by $Id: IEMAllIntprA64Tables-armv8.h 108958 2025-04-12 00:16:40Z vboxsync $
|
---|
3 | * from the open source v9Ap6-A specs, build 406 (5e0a212688c6bd7aee92394b6f5e491b4d0fee1d)
|
---|
4 | * dated Sun Dec 15 22:18:44 2024 UTC.
|
---|
5 | *
|
---|
6 | * Do not edit!
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * Copyright (C) 2025 Oracle and/or its affiliates.
|
---|
11 | *
|
---|
12 | * This file is part of VirtualBox base platform packages, as
|
---|
13 | * available from https://www.virtualbox.org.
|
---|
14 | *
|
---|
15 | * This program is free software; you can redistribute it and/or
|
---|
16 | * modify it under the terms of the GNU General Public License
|
---|
17 | * as published by the Free Software Foundation, in version 3 of the
|
---|
18 | * License.
|
---|
19 | *
|
---|
20 | * This program is distributed in the hope that it will be useful, but
|
---|
21 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
23 | * General Public License for more details.
|
---|
24 | *
|
---|
25 | * You should have received a copy of the GNU General Public License
|
---|
26 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
27 | *
|
---|
28 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
29 | */
|
---|
30 |
|
---|
31 |
|
---|
32 | #ifndef VMM_INCLUDED_SRC_VMMAll_target_armv8_IEMAllIntprA64Tables_armv8_h
|
---|
33 | #define VMM_INCLUDED_SRC_VMMAll_target_armv8_IEMAllIntprA64Tables_armv8_h
|
---|
34 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
35 | # pragma once
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | /** The top-level A64 decoder table for the IEM interpreter. */
|
---|
39 | extern PFIEMOPU32 const g_apfnIemInterpretOnlyA64[0x800];
|
---|
40 |
|
---|
41 | /**
|
---|
42 | * Calculates the index for @a uOpcode in g_apfnIemInterpretOnlyA64.
|
---|
43 | */
|
---|
44 | DECL_FORCE_INLINE(uintptr_t) iemInterpretOnlyA64CalcIndex(uint32_t uOpcode)
|
---|
45 | {
|
---|
46 | /* fMask=0x60e0fc00 -> 0x000007ff */
|
---|
47 | uintptr_t const idx = ((uOpcode >> 10) & UINT32_C(0x0000003f)) /* bit 10 L 6 -> 0 */
|
---|
48 | | ((uOpcode >> 15) & UINT32_C(0x000001c0)) /* bit 21 L 3 -> 6 */
|
---|
49 | | ((uOpcode >> 20) & UINT32_C(0x00000600)) /* bit 29 L 2 -> 9 */;
|
---|
50 | return idx;
|
---|
51 | }
|
---|
52 |
|
---|
53 | #endif /* !VMM_INCLUDED_SRC_VMMAll_target_armv8_IEMAllIntprA64Tables_armv8_h */
|
---|