Skip to content

Commit c3cdc9c

Browse files
author
zliu
committed
Fix the bigcode test failure for TILEGX
By: Zhi-Gang Liu git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15095 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 parent f193bf4 commit c3cdc9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

perf/bigcode.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
#if defined(__mips__)
1616
#include <asm/cachectl.h>
1717
#include <sys/syscall.h>
18+
#elif defined(__tilegx__)
19+
#include <asm/cachectl.h>
1820
#endif
1921
#include "tests/sys_mman.h"
2022

21-
#define FN_SIZE 996 // Must be big enough to hold the compiled f()
23+
#define FN_SIZE 1024 // Must be big enough to hold the compiled f()
2224
#define N_LOOPS 20000 // Should be divisible by four
2325
#define RATIO 4 // Ratio of code sizes between the two modes
2426

@@ -71,6 +73,8 @@ int main(int argc, char* argv[])
7173

7274
#if defined(__mips__)
7375
syscall(__NR_cacheflush, a, FN_SIZE * n_fns, ICACHE);
76+
#elif defined(__tilegx__)
77+
cacheflush(a, FN_SIZE * n_fns, ICACHE);
7478
#endif
7579

7680
for (h = 0; h < n_reps; h += 1) {

0 commit comments

Comments
 (0)