From 8dd9d630395eeb6d089e127f8434015357a0034a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Mon, 18 Nov 2024 10:41:03 +0100 Subject: [PATCH] refactor(micro_benchmarks): migrate from `aarch64` crate to `aarch64-cpu` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- benches/micro/Cargo.toml | 2 +- benches/micro/src/benches/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/micro/Cargo.toml b/benches/micro/Cargo.toml index 63d595f38..c881aa3fc 100644 --- a/benches/micro/Cargo.toml +++ b/benches/micro/Cargo.toml @@ -10,7 +10,7 @@ rayon = "1.5" hermit = { path = "../../hermit", default-features = false } [target.'cfg(target_arch = "aarch64")'.dependencies] -aarch64 = { version = "0.0.11", default-features = false } +aarch64-cpu = "10" [target.'cfg(target_arch = "riscv64")'.dependencies] riscv = "0.12" diff --git a/benches/micro/src/benches/mod.rs b/benches/micro/src/benches/mod.rs index 82d64b163..f7a2f0da1 100644 --- a/benches/micro/src/benches/mod.rs +++ b/benches/micro/src/benches/mod.rs @@ -28,7 +28,7 @@ fn get_timestamp() -> u64 { #[cfg(target_arch = "aarch64")] #[inline] fn get_timestamp() -> u64 { - use aarch64::regs::{Readable, CNTPCT_EL0}; + use aarch64_cpu::registers::{Readable, CNTPCT_EL0}; CNTPCT_EL0.get() }