Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RNMI CSRs and instruction #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions opcodes-system
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ecall 11..7=0 19..15=0 31..20=0x000 14..12=0 6..2=0x1C 1..0=3
ebreak 11..7=0 19..15=0 31..20=0x001 14..12=0 6..2=0x1C 1..0=3
sret 11..7=0 19..15=0 31..20=0x102 14..12=0 6..2=0x1C 1..0=3
mret 11..7=0 19..15=0 31..20=0x302 14..12=0 6..2=0x1C 1..0=3
mnret 11..7=0 19..15=0 31..20=0x702 14..12=0 6..2=0x1C 1..0=3
dret 11..7=0 19..15=0 31..20=0x7b2 14..12=0 6..2=0x1C 1..0=3
sfence.vma 11..7=0 rs1 rs2 31..25=0x09 14..12=0 6..2=0x1C 1..0=3
wfi 11..7=0 19..15=0 31..20=0x105 14..12=0 6..2=0x1C 1..0=3
Expand Down
6 changes: 5 additions & 1 deletion parse_opcodes
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ csrs = [
(0x344, 'mip'),
(0x34a, 'mtinst'),
(0x34b, 'mtval2'),
(0x350, 'mnscratch'),
(0x351, 'mnepc'),
(0x352, 'mncause'),
(0x353, 'mnstatus'),
(0x3a0, 'pmpcfg0'),
(0x3a1, 'pmpcfg1'),
(0x3a2, 'pmpcfg2'),
Expand Down Expand Up @@ -895,7 +899,7 @@ def print_insts(*names):
def make_supervisor_latex_table():
print_header('r', 'i')
print_subtitle('Trap-Return Instructions')
print_insts('sret', 'mret')
print_insts('sret', 'mret', 'mnret')
print_subtitle('Interrupt-Management Instructions')
print_insts('wfi')
print_subtitle('Supervisor Memory-Management Instructions')
Expand Down