Skip to content

Commit

Permalink
Merge pull request #643 from hermit-os/aarch64-cpu
Browse files Browse the repository at this point in the history
refactor(micro_benchmarks): migrate from `aarch64` crate to `aarch64-cpu`
  • Loading branch information
mkroening authored Nov 18, 2024
2 parents 1126394 + 8dd9d63 commit e22c355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/micro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion benches/micro/src/benches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e22c355

Please sign in to comment.