Browse Source

Fix sip::{set,clear}_ssoft

Property404 2 months ago
parent
commit
c4a24b851b
2 changed files with 6 additions and 2 deletions
  1. 4 0
      riscv/CHANGELOG.md
  2. 2 2
      riscv/src/register/sip.rs

+ 4 - 0
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

+ 2 - 2
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