Skip to content
Snippets Groups Projects

Allow running `checkasm` in user mode on AARCH64.

Open Matthias Langer requested to merge nekobasu/x264:aarch64_checkasm_user_mode into master

The performance counter you use in checkasm, namely pmccntr_el0 is only available in kernel mode applications. So, unless you are root, you cannot run checkasm on AARCH64 machines. This change fixes this problem.

The cntvct_el0 now used is a virtualized version of essentially the same counter. See also here: https://developer.arm.com/documentation/ddi0595/2020-12/AArch64-Registers/CNTVCT-EL0--Counter-timer-Virtual-Count-register

For good measure, I also threw in a isb (instruction barrier).

Edited by Matthias Langer

Merge request reports

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading