diff options
-rw-r--r-- | lib/igt_gt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 0236518f..463f8b6d 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -425,6 +425,7 @@ void igt_clflush_range(void *addr, int size) __builtin_ia32_mfence(); for (; p < end; p += clflush_size) __builtin_ia32_clflush(p); + __builtin_ia32_clflush(end - 1); /* magic serialisation for byt+ */ __builtin_ia32_mfence(); #else fprintf(stderr, "igt_clflush_range() unsupported\n"); |