- Jul 18, 2021
-
-
Ales Katona authored
-
Ales Katona authored
-
Ales Katona authored
-
- May 02, 2021
-
-
bors[bot] authored
70: Add docs.rs document build metadata for build targets r=Disasm a=luojia65 This pull request changes build targets when build documents on `docs.rs`, it will show RISC-V targets other than default x86 targets. Before:  After (take `rustsbi` crate as example):  Co-authored-by:
luojia65 <me@luojia.cc>
-
luojia65 authored
-
- Mar 15, 2021
-
-
luojia65 authored
-
- Mar 09, 2021
-
-
bors[bot] authored
68: Bug fix for interrupt bit in `scause::set` r=Disasm a=luojia65 This pull request includes a bug fix. On RISC-V's cause register, first bit means is this cause an interrupt. The code before made a mistake to or an one bit when exception. After this fix, it correctly or an one bit when interrupt. Related to https://github.com/luojia65/rustsbi/issues/10 . Thank you @wyfcyx Co-authored-by:
luojia65 <me@luojia.cc>
-
luojia65 authored
-
luojia65 authored
-
bors[bot] authored
67: Fix register configuration and documents r=Disasm a=luojia65 This pull request contains: 1. Use `#[cfg(target_pointer_width = "32")]` other than `#[cfg(riscv32)]` to provide support on IDE lint and cargo doc outputs 2. Add `#[inline]` on most of `set` and `write` functions Co-authored-by:
luojia65 <me@luojia.cc> Co-authored-by:
Luo Jia <me@luojia.cc>
-
Luo Jia authored
Co-authored-by:Vadim Kaushan <admin@disasm.info>
-
- Mar 08, 2021
-
-
luojia65 authored
-
- Mar 07, 2021
-
-
bors[bot] authored
66: Fix link to RISC-V team in wg repo r=Disasm a=hasheddan Fixes link to properly direct to heading in wg repo README.md. Signed-off-by:
hasheddan <georgedanielmangum@gmail.com> Co-authored-by:
hasheddan <georgedanielmangum@gmail.com>
-
hasheddan authored
Fixes link to properly direct to heading in wg repo README.md. Signed-off-by:hasheddan <georgedanielmangum@gmail.com>
-
- Feb 22, 2021
-
-
bors[bot] authored
63: Fix unescaped "[]"s in doc comment r=Disasm a=longfangsong When running `cargo doc` on this crate and crates depends on this crate, cargo will always raise `unresolved link` warnings for those `[h]` and `[x]`, which is annoying. This pr escaped the `[` and `]` in these code to silence these warning. Co-authored-by:longfangsong <longfangsong@icloud.com>
-
bors[bot] authored
65: Small fixes according to RISC-V privileged specification r=Disasm a=luojia65 This patch contains following parts: 1. RISC-V privileged specification v1.10 defined `TVM`, `TW` and `TSR` bits in `mstatus`, implement them in Rust. 2. Make `scause`, `stval`, `ucause` and `utval` writable. 3. Add some comments for instructions when we need to update this crate into privileged version v1.12. For part 2, these registers are defined read-write in specification, and are typically read in supervisor S-level. However in M-level there are some situations we should write values into them. This feature is used when M-level environment are transfering exception to S-level kernel. Function `scause::set` contains somehow lots of code here, we need to write a `Trap` struct into it, but I don't know which way is the best to implement this function. Co-authored-by:luojia65 <me@luojia.cc>
-
luojia65 authored
-
luojia65 authored
By @Disasm
-
- Feb 16, 2021
- Jan 26, 2021
-
-
longfangsong authored
-
- Oct 25, 2020
-
-
bors[bot] authored
57: Add mcounteren.rs, cycle[h].rs, instret[h].rs, and update mod.rs r=Disasm a=dkhayes117 I'm not sure the set_clear_csr!() macros are correct in mcounteren.rs. I get a build error that says `cannot find function `_clear` in this scope` Co-authored-by:dkhayes117 <dkhayes117@yahoo.com>
-
dkhayes117 authored
-
- Oct 24, 2020
-
-
dkhayes117 authored
-
dkhayes117 authored
-
dkhayes117 authored
Update assert! logic in mcounteren.rs and scounteren.rs Fix comment typo on `scounteren`
-
- Oct 21, 2020
-
-
dkhayes117 authored
-
- Oct 20, 2020
-
-
dkhayes117 authored
Add scounteren.rs Implemented set_hpm and clear_hpm functions Removed State enum, replaced with bool Update comments to be more concise
-
- Oct 17, 2020
-
-
dkhayes117 authored
Reformat mod.rs Update hpm method to use an index from enum Move mcounteren macros outside of Mcounteren type declaration
-
- Oct 16, 2020
-
-
dkhayes117 authored
-
dkhayes117 authored
update mod.rs
-
- Jul 24, 2020
-
-
bors[bot] authored
53: Update link (riscv to risc-v) r=Disasm a=aDotInTheVoid Co-authored-by:Nixon Enraght-Moony <nixon.emoony@gmail.com>
-
Nixon Enraght-Moony authored
-
- Jun 26, 2020
-
-
bors[bot] authored
52: Add CSR register `medeleg`; small doc fix r=Disasm a=luojia65 mideleg is at 0x303; medeleg is at 0x302. Co-authored-by:luojia65 <me@luojia.cc>
-
luojia65 authored
-
- Jun 25, 2020
- Jun 21, 2020
-
-
bors[bot] authored
51: Fix {S,U}tvec::trap_mode() functions to match Mtvec::trap_mode() r=almindor a=Disasm See also: https://github.com/rust-embedded/riscv/pull/50#issuecomment-647012575 Co-authored-by:Vadim Kaushan <admin@disasm.info>
-