Commit 13067916 authored by Martin Storsjö's avatar Martin Storsjö Committed by Janne Grunau

checkasm: Check for __ARM_ARCH >= 7 for the arm cpu timer inline assembly

This fixes building with raspbian compilers, that default to armv6.
The isb instruction is unavailable on armv6, and the cycle counter
register is accessed differently there as well.

This fixes issue #282.
parent 6c90f005
......@@ -144,7 +144,7 @@ static inline uint64_t readtime(void) {
}
#define readtime readtime
#endif
#elif ARCH_ARM && !defined(_MSC_VER)
#elif ARCH_ARM && !defined(_MSC_VER) && __ARM_ARCH >= 7
static inline uint64_t readtime(void) {
uint32_t cycle_counter;
/* This requires enabling user mode access to the cycle counter (which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment