From fefc424204a627067ab4268a9417065ad33d2a62 Mon Sep 17 00:00:00 2001 From: Zhi-Gang Liu Date: Wed, 15 Apr 2015 02:56:20 +0000 Subject: [PATCH] Fix the bigcode test failure for TILEGX By: Zhi-Gang Liu git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15095 --- perf/bigcode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.47.3