From c4a24b851b66c456f8fb1d2c4e218dbea21d3d09 Mon Sep 17 00:00:00 2001 From: Property404 Date: Mon, 11 Mar 2024 13:04:59 -0500 Subject: [PATCH] Fix sip::{set,clear}_ssoft --- riscv/CHANGELOG.md | 4 ++++ riscv/src/register/sip.rs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index 12b68fc1..4d979ee6 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Made `asm::wfi`, `fence`, `fence_i` and `sfence` safe (ie, removed `unsafe` from their definitions) +### Fixed + +- Fixed `sip::set_ssoft` and `sip::clear_ssoft` using wrong address + ## [v0.11.0] - 2024-01-14 ### Added diff --git a/riscv/src/register/sip.rs b/riscv/src/register/sip.rs index 715abc39..29daf3a8 100644 --- a/riscv/src/register/sip.rs +++ b/riscv/src/register/sip.rs @@ -33,8 +33,8 @@ impl Sip { } read_csr_as!(Sip, 0x144); -set!(0x344); -clear!(0x104); +set!(0x144); +clear!(0x144); set_clear_csr!( /// Supervisor Software Interrupt Pending