tstIEMCheckMc.cpp revision 8f28e374e0b8ea801e7b5364bccd8a7e0a6211d3
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IEM Testcase - Check the "Microcode".
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Copyright (C) 2011 Oracle Corporation
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * available from http://www.virtualbox.org. This file is free software;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * you can redistribute it and/or modify it under the terms of the GNU
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * General Public License (GPL) as published by the Free Software
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/*******************************************************************************
f78b12e570284aa8291f4ca1add24937fd107403vboxsync* Header Files *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync*******************************************************************************/
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/*******************************************************************************
f78b12e570284aa8291f4ca1add24937fd107403vboxsync* Global Variables *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync*******************************************************************************/
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncbool volatile g_fRandom;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/** For hacks. */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync do { a_ExpectedType *pCheckType = &(a_Param); } while (0)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync do { a_ExpectedType pCheckType = (a_Param); } while (0)
#define IEM_OPCODE_GET_NEXT_BYTE(a_pIemCpu, a_pu8) do { *(a_pu8) = g_bRandom; CHK_PTYPE(uint8_t *, a_pu8); } while (0)
#define IEM_OPCODE_GET_NEXT_U16(a_pIemCpu, a_pu16) do { *(a_pu16) = g_bRandom; CHK_PTYPE(uint16_t *, a_pu16); } while (0)
#define IEM_OPCODE_GET_NEXT_U32(a_pIemCpu, a_pu32) do { *(a_pu32) = g_bRandom; CHK_PTYPE(uint32_t *, a_pu32); } while (0)
#define IEM_OPCODE_GET_NEXT_S32_SX_U64(a_pIemCpu, a_pu64) do { *(a_pu64) = g_bRandom; CHK_PTYPE(uint64_t *, a_pu64); } while (0)
#define IEM_OPCODE_GET_NEXT_U64(a_pIemCpu, a_pu64) do { *(a_pu64) = g_bRandom; CHK_PTYPE(uint64_t *, a_pu64); } while (0)
#define IEM_OPCODE_GET_NEXT_S8(a_pIemCpu, a_pi8) do { *(a_pi8) = g_bRandom; CHK_PTYPE(int8_t *, a_pi8); } while (0)
#define IEM_OPCODE_GET_NEXT_S16(a_pi16) do { *(a_pi16) = g_bRandom; CHK_PTYPE(int16_t *, a_pi16); } while (0)
#define IEM_OPCODE_GET_NEXT_S32(a_pi32) do { *(a_pi32) = g_bRandom; CHK_PTYPE(int32_t *, a_pi32); } while (0)
#define IEMOP_HLP_NO_LOCK_PREFIX() do { } while (0)
#define IEMOP_HLP_NO_64BIT() do { } while (0)
#define IEMOP_HLP_DEFAULT_64BIT_OP_SIZE() do { } while (0)
typedef int ignore_semicolon
typedef int ignore_semicolon
#define IEM_MC_END() }
#define IEM_MC_PAUSE() do {} while (0)
#define IEM_MC_CONTINUE() do {} while (0)
#define IEM_MC_ADVANCE_RIP() do {} while (0)
#define IEM_MC_MAYBE_RAISE_DEVICE_NOT_AVAILABLE() do {} while (0)
#define IEM_MC_MAYBE_RAISE_FPU_XCPT() do {} while (0)
#define IEM_MC_RAISE_GP0_IF_CPL_NOT_ZERO() do {} while (0)
#define IEM_MC_SET_EFL_BIT(a_fBit) do { (pIemCpu)->CTX_SUFF(pCtx)->eflags.u |= (a_fBit); } while (0)
#define IEM_MC_CLEAR_EFL_BIT(a_fBit) do { (pIemCpu)->CTX_SUFF(pCtx)->eflags.u &= ~(a_fBit); } while (0)
#define IEM_MC_ELSE() } else {
#define IEM_MC_ENDIF() } do {} while (0)
#include "../VMMAll/IEMAllInstructions.cpp.h"
int main()
return rcExit;