VirtualBox

Changeset 60961 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 12, 2016 3:34:15 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107188
Message:

IEM: tstIEMCheckMc vs clang fixes.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllInstructions.cpp.h

    r60888 r60961  
    80598059        case IEMMODE_16BIT:
    80608060            IEM_MC_BEGIN(0, 1);
    8061             IEM_MC_LOCAL(uint16_t, *pu16Dst);
     8061            IEM_MC_LOCAL(uint16_t *, pu16Dst);
    80628062            IEM_MC_REF_GREG_U16(pu16Dst, iReg);
    80638063            IEM_MC_POP_U16(pu16Dst);
     
    80688068        case IEMMODE_32BIT:
    80698069            IEM_MC_BEGIN(0, 1);
    8070             IEM_MC_LOCAL(uint32_t, *pu32Dst);
     8070            IEM_MC_LOCAL(uint32_t *, pu32Dst);
    80718071            IEM_MC_REF_GREG_U32(pu32Dst, iReg);
    80728072            IEM_MC_POP_U32(pu32Dst);
     
    80788078        case IEMMODE_64BIT:
    80798079            IEM_MC_BEGIN(0, 1);
    8080             IEM_MC_LOCAL(uint64_t, *pu64Dst);
     8080            IEM_MC_LOCAL(uint64_t *, pu64Dst);
    80818081            IEM_MC_REF_GREG_U64(pu64Dst, iReg);
    80828082            IEM_MC_POP_U64(pu64Dst);
  • trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp

    r60415 r60961  
    438438#define IEM_MC_OR_GREG_U64(a_iGReg, a_u64Value)         do { CHK_CONST(uint64_t, a_u64Value); } while (0)
    439439
    440 #ifdef _MSC_VER
    441 #define IEM_MC_ADD_GREG_U8_TO_LOCAL(a_u16Value, a_iGReg)   do { (a_u8Value)  += 1; /*CHK_CONST(uint8_t,  a_u8Value); */ } while (0)
    442 #define IEM_MC_ADD_GREG_U16_TO_LOCAL(a_u16Value, a_iGReg)  do { (a_u16Value) += 1; /*CHK_CONST(uint16_t, a_u16Value);*/ } while (0)
    443 #define IEM_MC_ADD_GREG_U32_TO_LOCAL(a_u32Value, a_iGReg)  do { (a_u32Value) += 1; /*CHK_CONST(uint32_t, a_u32Value);*/ } while (0)
    444 #define IEM_MC_ADD_GREG_U64_TO_LOCAL(a_u64Value, a_iGReg)  do { (a_u64Value) += 1; /*CHK_CONST(uint64_t, a_u64Value);*/ } while (0)
    445 #else
    446 #define IEM_MC_ADD_GREG_U8_TO_LOCAL(a_u16Value, a_iGReg)   do { (a_u8Value)  += 1; CHK_CONST(uint8_t,  a_u8Value);  } while (0)
    447 #define IEM_MC_ADD_GREG_U16_TO_LOCAL(a_u16Value, a_iGReg)  do { (a_u16Value) += 1; CHK_CONST(uint16_t, a_u16Value); } while (0)
    448 #define IEM_MC_ADD_GREG_U32_TO_LOCAL(a_u32Value, a_iGReg)  do { (a_u32Value) += 1; CHK_CONST(uint32_t, a_u32Value); } while (0)
    449 #define IEM_MC_ADD_GREG_U64_TO_LOCAL(a_u64Value, a_iGReg)  do { (a_u64Value) += 1; CHK_CONST(uint64_t, a_u64Value); } while (0)
    450 #endif
     440#define IEM_MC_ADD_GREG_U8_TO_LOCAL(a_u16Value, a_iGReg)   do { (a_u8Value)  += 1; CHK_TYPE(uint8_t,  a_u8Value);  } while (0)
     441#define IEM_MC_ADD_GREG_U16_TO_LOCAL(a_u16Value, a_iGReg)  do { (a_u16Value) += 1; CHK_TYPE(uint16_t, a_u16Value); } while (0)
     442#define IEM_MC_ADD_GREG_U32_TO_LOCAL(a_u32Value, a_iGReg)  do { (a_u32Value) += 1; CHK_TYPE(uint32_t, a_u32Value); } while (0)
     443#define IEM_MC_ADD_GREG_U64_TO_LOCAL(a_u64Value, a_iGReg)  do { (a_u64Value) += 1; CHK_TYPE(uint64_t, a_u64Value); } while (0)
    451444#define IEM_MC_ADD_LOCAL_S16_TO_EFF_ADDR(a_EffAddr, a_i16) do { (a_EffAddr) += (a_i16); CHK_GCPTR(a_EffAddr); } while (0)
    452445#define IEM_MC_ADD_LOCAL_S32_TO_EFF_ADDR(a_EffAddr, a_i32) do { (a_EffAddr) += (a_i32); CHK_GCPTR(a_EffAddr); } while (0)
     
    558551#define IEM_MC_POP_U32(a_pu32Value)                                     do {} while (0)
    559552#define IEM_MC_POP_U64(a_pu64Value)                                     do {} while (0)
    560 #define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg)   do { NOREF(a_fAccess); } while (0)
     553#define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg)   do {} while (0)
    561554#define IEM_MC_MEM_MAP_EX(a_pvMem, a_fAccess, a_cbMem, a_iSeg, a_GCPtrMem, a_iArg)  do {} while (0)
    562555#define IEM_MC_MEM_COMMIT_AND_UNMAP(a_pvMem, a_fAccess)                             do {} while (0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette