1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Merge pull request #127 from fastogt/master

AARCH64 stub
This commit is contained in:
Veselin Georgiev 2019-07-14 21:38:31 +03:00 committed by GitHub
commit 88d98cedd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -180,6 +180,9 @@ void cpu_rdtsc(uint64_t* result)
#ifdef PLATFORM_ARM
low_part = 0;
hi_part = 0;
#elif defined(PLATFORM_AARCH64)
low_part = 0;
hi_part = 0;
#else
__asm __volatile (
" rdtsc\n"
@ -213,6 +216,7 @@ void busy_sse_loop(int cycles)
# define XALIGN ".align 4\n"
#endif
#ifdef PLATFORM_ARM
#elif defined(PLATFORM_AARCH64)
#else
__asm __volatile (
" xorps %%xmm0, %%xmm0\n"

View file

@ -55,11 +55,15 @@
#if !defined(PLATFORM_ARM)
# define PLATFORM_ARM
#endif
#elif defined(__aarch64__)
#if !defined(PLATFORM_ARM)
# define PLATFORM_AARCH64
#endif
#endif
/* Under Windows/AMD64 with MSVC, inline assembly isn't supported */
#if (((defined(COMPILER_GCC) || defined(COMPILER_CLANG))) && \
(defined(PLATFORM_X64) || defined(PLATFORM_X86) || defined(PLATFORM_ARM))) || \
(defined(PLATFORM_X64) || defined(PLATFORM_X86) || defined(PLATFORM_ARM) || defined(PLATFORM_AARCH64))) || \
(defined(COMPILER_MICROSOFT) && defined(PLATFORM_X86))
# define INLINE_ASM_SUPPORTED
#endif