VirtualBox

Changeset 96346 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
Aug 19, 2022 4:52:27 PM (2 years ago)
Author:
vboxsync
Message:

VMM/testcase/tstIEMAImpl: Fix building on Windows, the symbols must be declared in RT_C_DECLS_BEGIN/RT_C_DECLS_END because the symbol definition doesn't get mangled due to them living in assembly files, bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstIEMAImpl.h

    r96344 r96346  
    391391
    392392#define TSTIEM_DECLARE_TEST_ARRAY_BIN(a_szFile, a_Type, a_Instr) \
    393     extern RTDATADECL(a_Type)   const RT_CONCAT(g_aTests_, a_Instr)[]; \
    394     extern RTDATADECL(uint32_t) const RT_CONCAT(g_cbTests_, a_Instr)
     393    extern a_Type   const RT_CONCAT(g_aTests_, a_Instr)[]; \
     394    extern uint32_t const RT_CONCAT(g_cbTests_, a_Instr)
    395395
    396396TSTIEM_DECLARE_TEST_ARRAY(Int,              BINU8_TEST_T,               add_u8                   );
     
    749749TSTIEM_DECLARE_TEST_ARRAY(FpuOther-Intel,   FPU_UNARY_TWO_R80_TEST_T,   fsincos_r80_r80_intel    );
    750750
     751RT_C_DECLS_BEGIN
     752
    751753TSTIEM_DECLARE_TEST_ARRAY_BIN(SseBinary,    SSE_BINARY_TEST_T,          addps_u128               );
    752754TSTIEM_DECLARE_TEST_ARRAY_BIN(SseBinary,    SSE_BINARY_TEST_T,          mulps_u128               );
     
    771773TSTIEM_DECLARE_TEST_ARRAY_BIN(SseBinary,    SSE_BINARY_U128_R64_TEST_T, subsd_u128_r64           );
    772774
     775RT_C_DECLS_END
     776
    773777#endif /* !VMM_INCLUDED_SRC_testcase_tstIEMAImpl_h */
    774778
Note: See TracChangeset for help on using the changeset viewer.

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