Skip to content
Snippets Groups Projects
Unverified Commit e22c3550 authored by Martin Kröning's avatar Martin Kröning :crab: Committed by GitHub
Browse files

Merge pull request #643 from hermit-os/aarch64-cpu

refactor(micro_benchmarks): migrate from `aarch64` crate to `aarch64-cpu`
parents 11263946 8dd9d630
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ rayon = "1.5" ...@@ -10,7 +10,7 @@ rayon = "1.5"
hermit = { path = "../../hermit", default-features = false } hermit = { path = "../../hermit", default-features = false }
[target.'cfg(target_arch = "aarch64")'.dependencies] [target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64 = { version = "0.0.11", default-features = false } aarch64-cpu = "10"
[target.'cfg(target_arch = "riscv64")'.dependencies] [target.'cfg(target_arch = "riscv64")'.dependencies]
riscv = "0.12" riscv = "0.12"
......
...@@ -28,7 +28,7 @@ fn get_timestamp() -> u64 { ...@@ -28,7 +28,7 @@ fn get_timestamp() -> u64 {
#[cfg(target_arch = "aarch64")] #[cfg(target_arch = "aarch64")]
#[inline] #[inline]
fn get_timestamp() -> u64 { fn get_timestamp() -> u64 {
use aarch64::regs::{Readable, CNTPCT_EL0}; use aarch64_cpu::registers::{Readable, CNTPCT_EL0};
CNTPCT_EL0.get() CNTPCT_EL0.get()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment