summaryrefslogtreecommitdiff
path: root/nacl/cpucycles/sparc32cpuinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/cpucycles/sparc32cpuinfo.c')
-rw-r--r--nacl/cpucycles/sparc32cpuinfo.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/nacl/cpucycles/sparc32cpuinfo.c b/nacl/cpucycles/sparc32cpuinfo.c
deleted file mode 100644
index 1fc53d06..00000000
--- a/nacl/cpucycles/sparc32cpuinfo.c
+++ /dev/null
@@ -1,16 +0,0 @@
1#include <stdio.h>
2#include <sys/types.h>
3#include "osfreq.c"
4
5long long cpucycles_sparc32cpuinfo(void)
6{
7 long long result;
8 asm volatile(".word 2202075136; .word 2570088480; srl %%g1,0,%L0; mov %%o4,%H0"
9 : "=r" (result) : : "g1","o4");
10 return result;
11}
12
13long long cpucycles_sparc32cpuinfo_persecond(void)
14{
15 return osfreq();
16}