-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
I achieved to make it compile on this architecture with minor changes in src/util/timer.h:
static inline size_t rdtsc() {
uint64_t tsc;
asm volatile("mrs %0, cntvct_el0" : "=r"(tsc));
return tsc;
}
static double measure_rdtsc_freq() {
uint32_t freq_hz;
asm volatile ("mrs %0, cntfrq_el0; isb; " : "=r"(freq_hz) :: "memory");
return static_cast<double(freq_hz);
}But I don't know if there can be others compatibility problems at runtime?
Metadata
Metadata
Assignees
Labels
No labels