diff options
author | Eric Anholt <eric@anholt.net> | 2016-01-25 19:51:21 +0000 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2016-01-25 19:53:36 +0000 |
commit | ea3331d1201fa04904d87698055b84fa29f23869 (patch) | |
tree | 6ab9e958af88c27710146324a062b8debdf507f6 /lib/igt_gt.c | |
parent | bccc0ec6a3fdae880e14770c2ff5770fb86ea6fc (diff) |
igt: Disable igt_clflush_range() implementation on ARM builds
Daniel has suggested that I put vc4 testing into igt, since it's got
the piglit integration and KMS coverage already. This gets the ccore
building so that I can start writing tests.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'lib/igt_gt.c')
-rw-r--r-- | lib/igt_gt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 149435cd..6d827826 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -491,6 +491,7 @@ int igt_setup_clflush(void) void igt_clflush_range(void *addr, int size) { +#if defined(__i386__) || defined(__x86_64__) char *p, *end; end = (char *)addr + size; @@ -500,6 +501,9 @@ void igt_clflush_range(void *addr, int size) for (; p < end; p += clflush_size) asm volatile("clflush %0" : "+m" (*(volatile char *)p)); asm volatile("mfence" ::: "memory"); +#else + fprintf(stderr, "igt_clflush_range() unsupported\n"); +#endif } /** |