From cadabef94fba17d542489600169dfd839d865b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Thu, 15 Feb 2024 11:59:03 +0100 Subject: [PATCH] Minor releases --- riscv-pac/CHANGELOG.md | 2 ++ riscv-peripheral/CHANGELOG.md | 2 ++ riscv-peripheral/Cargo.toml | 4 ++-- riscv-rt/CHANGELOG.md | 2 ++ riscv-rt/Cargo.toml | 4 ++-- riscv-rt/src/lib.rs | 2 +- riscv/CHANGELOG.md | 4 +++- riscv/Cargo.toml | 2 +- riscv/src/asm.rs | 2 +- 9 files changed, 16 insertions(+), 8 deletions(-) diff --git a/riscv-pac/CHANGELOG.md b/riscv-pac/CHANGELOG.md index e804f61e..ab888408 100644 --- a/riscv-pac/CHANGELOG.md +++ b/riscv-pac/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.1.1] - 2024-02-15 + - Fix crates.io badge links ## [v0.1.0] - 2024-01-14 diff --git a/riscv-peripheral/CHANGELOG.md b/riscv-peripheral/CHANGELOG.md index 5fb9bd90..78257cd0 100644 --- a/riscv-peripheral/CHANGELOG.md +++ b/riscv-peripheral/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.1.0] - 2024-02-15 + ### Added - Add `ACLINT`, `CLINT`, and `PLIC` structs diff --git a/riscv-peripheral/Cargo.toml b/riscv-peripheral/Cargo.toml index d0d4e499..48d3e1cc 100644 --- a/riscv-peripheral/Cargo.toml +++ b/riscv-peripheral/Cargo.toml @@ -8,8 +8,8 @@ edition = "2021" [dependencies] embedded-hal = "1.0.0" embedded-hal-async = { version = "1.0.0", optional = true } -riscv = { path = "../riscv", version = "0.11.0" } -riscv-pac = { path = "../riscv-pac", version = "0.1.0" } +riscv = { path = "../riscv", version = "0.11.1" } +riscv-pac = { path = "../riscv-pac", version = "0.1.1" } [dev-dependencies] heapless = "0.8.0" diff --git a/riscv-rt/CHANGELOG.md b/riscv-rt/CHANGELOG.md index 0c409f06..4a72f025 100644 --- a/riscv-rt/CHANGELOG.md +++ b/riscv-rt/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.12.2] - 2024-02-15 + ### Added - Implementation of `default_mp_hook` when `single-hart` feature is enabled. diff --git a/riscv-rt/Cargo.toml b/riscv-rt/Cargo.toml index 22046027..67e4b9e3 100644 --- a/riscv-rt/Cargo.toml +++ b/riscv-rt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv-rt" -version = "0.12.1" +version = "0.12.2" rust-version = "1.60" repository = "https://github.com/rust-embedded/riscv" authors = ["The RISC-V Team "] @@ -17,7 +17,7 @@ s-mode = [] single-hart = [] [dependencies] -riscv = {path = "../riscv", version = "0.11.0"} +riscv = {path = "../riscv", version = "0.11.1"} riscv-rt-macros = { path = "macros", version = "0.2.1" } [dev-dependencies] diff --git a/riscv-rt/src/lib.rs b/riscv-rt/src/lib.rs index fdd8047b..164b39bc 100644 --- a/riscv-rt/src/lib.rs +++ b/riscv-rt/src/lib.rs @@ -756,7 +756,7 @@ pub extern "Rust" fn default_mp_hook(hartid: usize) -> bool { match hartid { 0 => true, _ => loop { - unsafe { riscv::asm::wfi() } + riscv::asm::wfi(); }, } } diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index 0cbbbd59..12b68fc1 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -7,9 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.11.1] - 2024-02-15 + ### Changed -- Made `asm::fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions) +- Made `asm::wfi`, `fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions) ## [v0.11.0] - 2024-01-14 diff --git a/riscv/Cargo.toml b/riscv/Cargo.toml index 54b84235..45f07f36 100644 --- a/riscv/Cargo.toml +++ b/riscv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv" -version = "0.11.0" +version = "0.11.1" edition = "2021" rust-version = "1.60" repository = "https://github.com/rust-embedded/riscv" diff --git a/riscv/src/asm.rs b/riscv/src/asm.rs index 6c177a2e..682e83ae 100644 --- a/riscv/src/asm.rs +++ b/riscv/src/asm.rs @@ -48,7 +48,7 @@ instruction!( /// /// Provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing. /// The WFI instruction is just a hint, and a legal implementation is to implement WFI as a NOP. - , unsafe wfi, "wfi"); + , wfi, "wfi"); instruction!( /// `SFENCE.VMA` instruction wrapper (all address spaces and page table levels) ///