diff --git a/hifive1-test/Cargo.toml b/hifive1-test/Cargo.toml index 54a4749..77ebbad 100644 --- a/hifive1-test/Cargo.toml +++ b/hifive1-test/Cargo.toml @@ -7,10 +7,9 @@ edition = "2021" [dependencies] riscv-slic = {path = "../riscv-slic", features = ["clint-backend", "unsafe-assume-single-core"]} -e310x = { git = "https://github.com/greenlsi/e310x.git", rev = "f22b4dd"} -hifive1 = { git = "https://github.com/greenlsi/hifive1.git", branch = "rtc", features = ["board-redv"] } +e310x = { git = "https://github.com/greenlsi/e310x.git", branch = "master"} +hifive1 = { git = "https://github.com/romancardenas/hifive1.git", branch = "master", features = ["board-redv"] } bare-metal = "0.2" # riscv-rt = "0.11.0" riscv-rt = {git = "https://github.com/rust-embedded/riscv-rt.git", branch = "master"} -# riscv-rt = {path = "../../../github/riscv-rt", features = ["atomic-emulation-trap"]} panic-halt = "0.2.0" diff --git a/riscv-slic-macros/src/export/clint.rs b/riscv-slic-macros/src/export/clint.rs index 80fa426..17bfc5c 100644 --- a/riscv-slic-macros/src/export/clint.rs +++ b/riscv-slic-macros/src/export/clint.rs @@ -53,7 +53,7 @@ pub fn export_quote(input: &CodegenInput) -> TokenStream { #[inline] #[no_mangle] pub unsafe fn __riscv_slic_swi_pend() { - let msip = #pac::CLINT::mswi().msip(#pac::clint::HartId::#hart_id); + let msip = #pac::CLINT::mswi().msip(#pac::HartId::#hart_id); msip.pend(); } @@ -65,7 +65,7 @@ pub fn export_quote(input: &CodegenInput) -> TokenStream { #[inline] #[no_mangle] pub unsafe fn __riscv_slic_swi_unpend() { - let msip = #pac::CLINT::mswi().msip(#pac::clint::HartId::#hart_id); + let msip = #pac::CLINT::mswi().msip(#pac::HartId::#hart_id); msip.unpend(); } }