/* $Id: IEMAllInstructionsThreadedRecompiler.cpp 99647 2023-05-06 00:42:59Z vboxsync $ */ /** @file * IEM - Instruction Decoding and Emulation. */ /* * Copyright (C) 2011-2023 Oracle and/or its affiliates. * * This file is part of VirtualBox base platform packages, as * available from https://www.virtualbox.org. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, in version 3 of the * License. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . * * SPDX-License-Identifier: GPL-3.0-only */ /********************************************************************************************************************************* * Header Files * *********************************************************************************************************************************/ #ifndef LOG_GROUP /* defined when included by tstIEMCheckMc.cpp */ # define LOG_GROUP LOG_GROUP_IEM #endif #define VMCPU_INCL_CPUM_GST_CTX #include #include #include #include #include #include #include #include #include #include #ifdef VBOX_WITH_NESTED_HWVIRT_SVM # include # include #endif #ifdef VBOX_WITH_NESTED_HWVIRT_VMX # include #endif #include #include #include #ifndef TST_IEM_CHECK_MC # include "IEMInternal.h" #endif #include #include #include #include #include #include #include #include #include #include #ifndef TST_IEM_CHECK_MC # include "IEMInline.h" # include "IEMOpHlp.h" # include "IEMMc.h" #endif #include "IEMThreadedFunctions.h" /********************************************************************************************************************************* * Defined Constants And Macros * *********************************************************************************************************************************/ #define g_apfnOneByteMap g_apfnIemThreadedRecompilerOneByteMap #define IEM_MC2_EMIT_CALL_1(a_enmFunction, a_uArg0) do { \ IEMTHREADEDFUNCS const enmFunctionCheck = a_enmFunction; RT_NOREF(enmFunctionCheck); \ uint64_t const uArg0Check = (a_uArg0); RT_NOREF(uArg0Check); \ } while (0) #define IEM_MC2_EMIT_CALL_2(a_enmFunction, a_uArg0, a_uArg1) do { \ IEMTHREADEDFUNCS const enmFunctionCheck = a_enmFunction; RT_NOREF(enmFunctionCheck); \ uint64_t const uArg0Check = (a_uArg0); RT_NOREF(uArg0Check); \ uint64_t const uArg1Check = (a_uArg1); RT_NOREF(uArg1Check); \ } while (0) #define IEM_MC2_EMIT_CALL_3(a_enmFunction, a_uArg0, a_uArg1, a_uArg2) do { \ IEMTHREADEDFUNCS const enmFunctionCheck = a_enmFunction; RT_NOREF(enmFunctionCheck); \ uint64_t const uArg0Check = (a_uArg0); RT_NOREF(uArg0Check); \ uint64_t const uArg1Check = (a_uArg1); RT_NOREF(uArg1Check); \ uint64_t const uArg2Check = (a_uArg2); RT_NOREF(uArg2Check); \ } while (0) /* * Include the "annotated" IEMAllInstructions*.cpp.h files. */ #include "IEMThreadedInstructions.cpp.h"