Low level access to RISC-V processors

David Craven 59d46795b2 A unified contributing experience. 6 роки тому
.github 59d46795b2 A unified contributing experience. 6 роки тому
ci 59d46795b2 A unified contributing experience. 6 роки тому
src 6769ac9262 fix target_arch conditionals to match "riscv32" and "riscv64" 6 роки тому
.gitignore e864581828 Initial commit. 7 роки тому
.travis.yml 59d46795b2 A unified contributing experience. 6 роки тому
CODE_OF_CONDUCT.md 59d46795b2 A unified contributing experience. 6 роки тому
Cargo.toml 87bcdd8bab Bump version. 7 роки тому
README.md 45364b26a8 Add mepc register. 7 роки тому

README.md

riscv

Low level access to RISCV processors

Implemented Peripherals

  • plic
  • clint

Implemented privileged ASM instructions

  • ecall
  • ebreak
  • uret
  • sret
  • mret
  • wfi
  • sfence.vma

Implemented CSR's

User mode

  • ustatus
  • uie
  • utvec
  • uscratch
  • uepc
  • ucause
  • utval
  • uip
  • fflags
  • frm
  • fcsr
  • cycle
  • time
  • instret
  • hpmcounter[3-31]
  • cycleh
  • timeh
  • instreth
  • hpmcounter[3-31]h

Supervisor mode

  • sstatus
  • sedeleg
  • sideleg
  • sie
  • stvec
  • scounteren
  • sscratch
  • sepc
  • scause
  • stval
  • sip
  • satp

Machine mode

  • mvendorid
  • marchid
  • mimpid
  • mhartid
  • mstatus
  • misa
  • medeleg
  • mideleg
  • mie
  • mtvec
  • mcounteren
  • mscratch
  • mepc
  • mcause
  • mtval
  • mip
  • pmpcfg[0-3]
  • pmpaddr[0-15]
  • mcycle
  • minstret
  • mhpmcounter[3-31]
  • mcycleh
  • minstreth
  • mhpmcounter[3-31]h
  • mhpmevent[3-31]
  • tselect
  • tdata[1-3]

License

Copyright 2017 David Craven

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.