aboutsummaryrefslogtreecommitdiff
path: root/rv_zicntr
diff options
context:
space:
mode:
Diffstat (limited to 'rv_zicntr')
-rw-r--r--rv_zicntr5
1 files changed, 5 insertions, 0 deletions
diff --git a/rv_zicntr b/rv_zicntr
new file mode 100644
index 0000000..deecaa0
--- /dev/null
+++ b/rv_zicntr
@@ -0,0 +1,5 @@
+#rv_zicntr instructions
+$pseudo_op rv_zicsr::csrrs rdcycle rd 19..15=0 31..20=0xC00 14..12=2 6..2=0x1C 1..0=3
+$pseudo_op rv_zicsr::csrrs rdtime rd 19..15=0 31..20=0xC01 14..12=2 6..2=0x1C 1..0=3
+$pseudo_op rv_zicsr::csrrs rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3
+