diff --git a/linux/cycles.h b/linux/cycles.h index 51be192f..eff99e02 100644 --- a/linux/cycles.h +++ b/linux/cycles.h @@ -103,6 +103,20 @@ static inline cycles_t get_cycles (void) #endif +/* everything else but x86, amd64 or ppc */ +#if !defined (__PPC__) && !defined (__x86_64__) && !defined (__i386__) + +#warning No suitable get_cycles() implementation. Returning 0 instead + +typedef unsigned long long cycles_t; + +static inline cycles_t get_cycles(void) +{ + return 0; +} + +#endif + #endif #endif /* __jack_cycles_h__ */