From: Zhi-Gang Liu Date: Wed, 15 Apr 2015 02:56:20 +0000 (+0000) Subject: Fix the bigcode test failure for TILEGX X-Git-Tag: svn/VALGRIND_3_11_0~501 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fefc424204a627067ab4268a9417065ad33d2a62;p=thirdparty%2Fvalgrind.git Fix the bigcode test failure for TILEGX By: Zhi-Gang Liu git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15095 --- diff --git a/perf/bigcode.c b/perf/bigcode.c index 6e8940140b..8cb1cd223c 100644 --- a/perf/bigcode.c +++ b/perf/bigcode.c @@ -15,10 +15,12 @@ #if defined(__mips__) #include #include +#elif defined(__tilegx__) +#include #endif #include "tests/sys_mman.h" -#define FN_SIZE 996 // Must be big enough to hold the compiled f() +#define FN_SIZE 1024 // Must be big enough to hold the compiled f() #define N_LOOPS 20000 // Should be divisible by four #define RATIO 4 // Ratio of code sizes between the two modes @@ -71,6 +73,8 @@ int main(int argc, char* argv[]) #if defined(__mips__) syscall(__NR_cacheflush, a, FN_SIZE * n_fns, ICACHE); +#elif defined(__tilegx__) + cacheflush(a, FN_SIZE * n_fns, ICACHE); #endif for (h = 0; h < n_reps; h += 1) {