1 | /* $Id: IEMAllInstructionsInterpretOnly.cpp 98916 2023-03-12 01:27:21Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IEM - Instruction Decoding and Emulation.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-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 | #ifndef LOG_GROUP /* defined when included by tstIEMCheckMc.cpp */
|
---|
33 | # define LOG_GROUP LOG_GROUP_IEM
|
---|
34 | #endif
|
---|
35 | #define VMCPU_INCL_CPUM_GST_CTX
|
---|
36 | #include <VBox/vmm/iem.h>
|
---|
37 | #include <VBox/vmm/cpum.h>
|
---|
38 | #include <VBox/vmm/apic.h>
|
---|
39 | #include <VBox/vmm/pdm.h>
|
---|
40 | #include <VBox/vmm/pgm.h>
|
---|
41 | #include <VBox/vmm/iom.h>
|
---|
42 | #include <VBox/vmm/em.h>
|
---|
43 | #include <VBox/vmm/hm.h>
|
---|
44 | #include <VBox/vmm/nem.h>
|
---|
45 | #include <VBox/vmm/gim.h>
|
---|
46 | #ifdef VBOX_WITH_NESTED_HWVIRT_SVM
|
---|
47 | # include <VBox/vmm/em.h>
|
---|
48 | # include <VBox/vmm/hm_svm.h>
|
---|
49 | #endif
|
---|
50 | #ifdef VBOX_WITH_NESTED_HWVIRT_VMX
|
---|
51 | # include <VBox/vmm/hmvmxinline.h>
|
---|
52 | #endif
|
---|
53 | #include <VBox/vmm/tm.h>
|
---|
54 | #include <VBox/vmm/dbgf.h>
|
---|
55 | #include <VBox/vmm/dbgftrace.h>
|
---|
56 | #ifndef TST_IEM_CHECK_MC
|
---|
57 | # include "IEMInternal.h"
|
---|
58 | #endif
|
---|
59 | #include <VBox/vmm/vmcc.h>
|
---|
60 | #include <VBox/log.h>
|
---|
61 | #include <VBox/err.h>
|
---|
62 | #include <VBox/param.h>
|
---|
63 | #include <VBox/dis.h>
|
---|
64 | #include <VBox/disopcode.h>
|
---|
65 | #include <iprt/asm-math.h>
|
---|
66 | #include <iprt/assert.h>
|
---|
67 | #include <iprt/string.h>
|
---|
68 | #include <iprt/x86.h>
|
---|
69 |
|
---|
70 | #ifndef TST_IEM_CHECK_MC
|
---|
71 | # include "IEMInline.h"
|
---|
72 | # include "IEMOpHlp.h"
|
---|
73 | # include "IEMMc.h"
|
---|
74 | #endif
|
---|
75 |
|
---|
76 |
|
---|
77 | /*********************************************************************************************************************************
|
---|
78 | * Defined Constants And Macros *
|
---|
79 | *********************************************************************************************************************************/
|
---|
80 | #define g_apfnOneByteMap g_apfnIemInterpretOnlyOneByteMap
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 | /*
|
---|
85 | * Include common bits.
|
---|
86 | */
|
---|
87 | #include "IEMAllInstructionsCommonBodyMacros.h"
|
---|
88 | #include "IEMAllInstructionsCommon.cpp.h"
|
---|
89 |
|
---|
90 |
|
---|
91 | /*
|
---|
92 | * Include the tables.
|
---|
93 | */
|
---|
94 | #ifdef IEM_WITH_3DNOW
|
---|
95 | # include "IEMAllInstructions3DNow.cpp.h"
|
---|
96 | #endif
|
---|
97 |
|
---|
98 | #ifdef IEM_WITH_THREE_0F_38
|
---|
99 | # include "IEMAllInstructionsThree0f38.cpp.h"
|
---|
100 | #endif
|
---|
101 |
|
---|
102 | #ifdef IEM_WITH_THREE_0F_3A
|
---|
103 | # include "IEMAllInstructionsThree0f3a.cpp.h"
|
---|
104 | #endif
|
---|
105 |
|
---|
106 | #include "IEMAllInstructionsTwoByte0f.cpp.h"
|
---|
107 |
|
---|
108 | #ifdef IEM_WITH_VEX
|
---|
109 | # include "IEMAllInstructionsVexMap1.cpp.h"
|
---|
110 | # include "IEMAllInstructionsVexMap2.cpp.h"
|
---|
111 | # include "IEMAllInstructionsVexMap3.cpp.h"
|
---|
112 | #endif
|
---|
113 |
|
---|
114 | #include "IEMAllInstructionsOneByte.cpp.h"
|
---|
115 |
|
---|