x86/cpu: implement get/set_eflags using intrinsics
Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:

committed by
Martin Storsjö

parent
c0ee695bd7
commit
358d854df8
2
configure
vendored
2
configure
vendored
@@ -1126,6 +1126,7 @@ HAVE_LIST="
|
||||
rdtsc
|
||||
round
|
||||
roundf
|
||||
rweflags
|
||||
sched_getaffinity
|
||||
sdl
|
||||
sdl_video_size
|
||||
@@ -2747,6 +2748,7 @@ elif enabled x86; then
|
||||
check_code ld immintrin.h "__xgetbv(0)" && enable xgetbv
|
||||
check_code ld intrin.h "int info[4]; __cpuid(info, 0)" && enable cpuid
|
||||
check_code ld intrin.h "__rdtsc()" && enable rdtsc
|
||||
check_code ld intrin.h "unsigned int x = __readeflags()" && enable rweflags
|
||||
|
||||
check_code ld mmintrin.h "_mm_empty()" && enable mm_empty
|
||||
|
||||
|
Reference in New Issue
Block a user