Skip to content

Is aarch64 supported? #111

@Eren121

Description

@Eren121

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions