We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f193bf4 commit c3cdc9cCopy full SHA for c3cdc9c
perf/bigcode.c
@@ -15,10 +15,12 @@
15
#if defined(__mips__)
16
#include <asm/cachectl.h>
17
#include <sys/syscall.h>
18
+#elif defined(__tilegx__)
19
+#include <asm/cachectl.h>
20
#endif
21
#include "tests/sys_mman.h"
22
-#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()
24
#define N_LOOPS 20000 // Should be divisible by four
25
#define RATIO 4 // Ratio of code sizes between the two modes
26
@@ -71,6 +73,8 @@ int main(int argc, char* argv[])
71
73
72
74
75
syscall(__NR_cacheflush, a, FN_SIZE * n_fns, ICACHE);
76
77
+ cacheflush(a, FN_SIZE * n_fns, ICACHE);
78
79
80
for (h = 0; h < n_reps; h += 1) {
0 commit comments