VirtualBox

Changeset 87256 in vbox for trunk/src


Ignore:
Timestamp:
Jan 15, 2021 10:27:15 AM (4 years ago)
Author:
vboxsync
Message:

IPRT,iprt/asm-arm.h: ASMReadTSC using CNTVCT or CNTPCT. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp

    r87228 r87256  
    4444# include <iprt/asm-amd64-x86.h>
    4545# include <iprt/x86.h>
     46#elif defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)
     47# include <iprt/asm-arm.h>
     48# include <iprt/time.h>
    4649#else
    4750# include <iprt/time.h>
     
    26762679    RTTestSub(g_hTest, "Benchmarking");
    26772680
    2678 #if 0 && !defined(GCC44_32BIT_PIC) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
     2681#if 0 && !defined(GCC44_32BIT_PIC) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) || defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32))
    26792682# define BENCH(op, str) \
    26802683    do { \
     
    27062709    } while (0)
    27072710#endif
    2708 #if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) && !defined(GCC44_32BIT_PIC)
     2711#if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) || defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) && !defined(GCC44_32BIT_PIC)
    27092712# define BENCH_TSC(op, str) \
    27102713    do { \
     
    28042807    BENCH(s_u32 = ASMGetApicIdExt8000001E(),    "ASMGetApicIdExt8000001E");
    28052808#endif
     2809#if !defined(GCC44_32BIT_PIC) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)  || defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32))
     2810    BENCH(s_u64 = ASMReadTSC(),                 "ASMReadTSC");
     2811#endif
    28062812#if !defined(GCC44_32BIT_PIC) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
    28072813    uint32_t uAux;
     
    28132819        BENCH(s_u64 = ASMReadTscWithAux(&uAux),  "ASMReadTscWithAux");
    28142820    }
    2815     BENCH(s_u64 = ASMReadTSC(),                 "ASMReadTSC");
    28162821    union
    28172822    {
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