1 | /* $Id: IEMAll-armv8.cpp 99051 2023-03-19 16:40:06Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IEM - Interpreted Execution Manager, ARMv8 specific things.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 |
|
---|
29 | /*********************************************************************************************************************************
|
---|
30 | * Header Files *
|
---|
31 | *********************************************************************************************************************************/
|
---|
32 | #define LOG_GROUP LOG_GROUP_EM
|
---|
33 | #include <VBox/vmm/iem.h>
|
---|
34 | #include <VBox/vmm/cpum.h>
|
---|
35 | #include <VBox/vmm/dbgf.h>
|
---|
36 | #include <VBox/vmm/mm.h>
|
---|
37 | #include "IEMInternal-armv8.h"
|
---|
38 | #include <VBox/vmm/vm.h>
|
---|
39 | #include <VBox/vmm/vmapi.h>
|
---|
40 | #include <VBox/err.h>
|
---|
41 |
|
---|
42 | #include <iprt/assert.h>
|
---|
43 | #include <iprt/getopt.h>
|
---|
44 | #include <iprt/string.h>
|
---|
45 |
|
---|
46 |
|
---|
47 | /*********************************************************************************************************************************
|
---|
48 | * Internal Functions *
|
---|
49 | *********************************************************************************************************************************/
|
---|
50 |
|
---|
51 | VMMDECL(VBOXSTRICTRC) IEMExecForExits(PVMCPUCC pVCpu, uint32_t fWillExit, uint32_t cMinInstructions, uint32_t cMaxInstructions,
|
---|
52 | uint32_t cMaxInstructionsWithoutExits, PIEMEXECFOREXITSTATS pStats)
|
---|
53 | {
|
---|
54 | AssertReleaseFailed();
|
---|
55 | RT_NOREF(pVCpu, fWillExit, cMinInstructions, cMaxInstructions, cMaxInstructionsWithoutExits, pStats);
|
---|
56 | return VERR_NOT_IMPLEMENTED;
|
---|
57 | }
|
---|
58 |
|
---|
59 |
|
---|
60 | VMMDECL(VBOXSTRICTRC) IEMExecLots(PVMCPUCC pVCpu, uint32_t cMaxInstructions, uint32_t cPollRate, uint32_t *pcInstructions)
|
---|
61 | {
|
---|
62 | AssertReleaseFailed();
|
---|
63 | RT_NOREF(pVCpu, cMaxInstructions, cPollRate, pcInstructions);
|
---|
64 | return VERR_NOT_IMPLEMENTED;
|
---|
65 | }
|
---|
66 |
|
---|
67 |
|
---|
68 | VMMDECL(VBOXSTRICTRC) IEMExecOne(PVMCPUCC pVCpu)
|
---|
69 | {
|
---|
70 | AssertReleaseFailed();
|
---|
71 | RT_NOREF(pVCpu);
|
---|
72 | return VERR_NOT_IMPLEMENTED;
|
---|
73 | }
|
---|
74 |
|
---|
75 |
|
---|
76 | VMMDECL(VBOXSTRICTRC) IEMExecOneWithPrefetchedByPC(PVMCPUCC pVCpu, uint64_t OpcodeBytesPC,
|
---|
77 | const void *pvOpcodeBytes, size_t cbOpcodeBytes)
|
---|
78 | {
|
---|
79 | AssertReleaseFailed();
|
---|
80 | RT_NOREF(pVCpu, OpcodeBytesPC, pvOpcodeBytes, cbOpcodeBytes);
|
---|
81 | return VERR_NOT_IMPLEMENTED;
|
---|
82 | }
|
---|
83 |
|
---|
84 |
|
---|
85 | VMMDECL(VBOXSTRICTRC) IEMExecOneBypassEx(PVMCPUCC pVCpu, uint32_t *pcbWritten)
|
---|
86 | {
|
---|
87 | AssertReleaseFailed();
|
---|
88 | RT_NOREF(pVCpu, pcbWritten);
|
---|
89 | return VERR_NOT_IMPLEMENTED;
|
---|
90 | }
|
---|
91 |
|
---|
92 |
|
---|
93 | VMMDECL(VBOXSTRICTRC) IEMExecOneBypassWithPrefetchedByPC(PVMCPUCC pVCpu, uint64_t OpcodeBytesPC,
|
---|
94 | const void *pvOpcodeBytes, size_t cbOpcodeBytes)
|
---|
95 | {
|
---|
96 | AssertReleaseFailed();
|
---|
97 | RT_NOREF(pVCpu, OpcodeBytesPC, pvOpcodeBytes, cbOpcodeBytes);
|
---|
98 | return VERR_NOT_IMPLEMENTED;
|
---|
99 | }
|
---|
100 |
|
---|
101 |
|
---|
102 | VMMDECL(VBOXSTRICTRC) IEMInjectTrpmEvent(PVMCPUCC pVCpu)
|
---|
103 | {
|
---|
104 | AssertReleaseFailed();
|
---|
105 | RT_NOREF(pVCpu);
|
---|
106 | return VERR_NOT_IMPLEMENTED;
|
---|
107 | }
|
---|
108 |
|
---|
109 |
|
---|
110 | VMM_INT_DECL(void) IEMTlbInvalidateAll(PVMCPUCC pVCpu)
|
---|
111 | {
|
---|
112 | RT_NOREF(pVCpu);
|
---|
113 | }
|
---|
114 |
|
---|
115 |
|
---|
116 | VMM_INT_DECL(void) IEMTlbInvalidateAllPhysicalAllCpus(PVMCC pVM, VMCPUID idCpuCaller)
|
---|
117 | {
|
---|
118 | RT_NOREF(pVM, idCpuCaller);
|
---|
119 | }
|
---|
120 |
|
---|
121 |
|
---|
122 | VMMR3_INT_DECL(VBOXSTRICTRC) IEMR3ProcessForceFlag(PVM pVM, PVMCPUCC pVCpu, VBOXSTRICTRC rcStrict)
|
---|
123 | {
|
---|
124 | AssertReleaseFailed();
|
---|
125 | RT_NOREF(pVM, pVCpu, rcStrict);
|
---|
126 | return VERR_NOT_IMPLEMENTED;
|
---|
127 | }
|
---|