[LTP] [PATCH] syscalls/mprotect04: Use __builtin___clear_cache() to sync caches

Peter Maydell peter.maydell@linaro.org
Mon Aug 1 14:23:43 CEST 2016


On 1 August 2016 at 12:31, Cyril Hrubis <chrubis@suse.cz> wrote:
> As far as I can tell this is not needed on x86 machines so maybe we
> should do something as:
>
> ...
>
> #else
> # if !defined(__x86_64__) && !defined(__i386__)
>         tst_brkm(TCONF, cleanup,
>                 "compiler doesn't have __builtin___clear_cache()");
> # endif
> #endif
>
>
> So that the test is not disabled on older x86 machines.

I considered that, but I felt it was not worth having
an architecture-specific ifdef in the code purely to support
running this test case with compilers that are a decade
old (and will only be getting rarer in the future) on one
specific architecture...

thanks
-- PMM


More information about the ltp mailing list