summaryrefslogtreecommitdiff
path: root/opcodes-pseudo
diff options
context:
space:
mode:
authorGravatar Andrew Waterman <waterman@eecs.berkeley.edu>2013-11-25 01:43:47 -0800
committerGravatar Andrew Waterman <waterman@eecs.berkeley.edu>2013-11-25 01:43:47 -0800
commit2d11bac94537e08b30b8ace0eb39ecbbbc386c8e (patch)
tree5c9b9dcee1a2fe0e2fb666020d552a207daa8958 /opcodes-pseudo
parentbc445390566f8831dd8bb34bcc05d80c7401296a (diff)
New privileged ISA
Diffstat (limited to 'opcodes-pseudo')
-rw-r--r--opcodes-pseudo10
1 files changed, 10 insertions, 0 deletions
diff --git a/opcodes-pseudo b/opcodes-pseudo
new file mode 100644
index 0000000..38a3887
--- /dev/null
+++ b/opcodes-pseudo
@@ -0,0 +1,10 @@
+# SYSTEM pseudo-instructions that map to csr*
+@fsflags rd rs1 31..20=0x001 14..12=1 6..2=0x1C 1..0=3
+@frflags rd 19..15=0 31..20=0x001 14..12=2 6..2=0x1C 1..0=3
+@fsrm rd rs1 31..20=0x002 14..12=1 6..2=0x1C 1..0=3
+@frrm rd 19..15=0 31..20=0x002 14..12=2 6..2=0x1C 1..0=3
+@fssr rd rs1 31..20=0x003 14..12=1 6..2=0x1C 1..0=3
+@frsr rd 19..15=0 31..20=0x003 14..12=2 6..2=0x1C 1..0=3
+@rdcycle rd 19..15=0 31..20=0x004 14..12=2 6..2=0x1C 1..0=3
+@rdtime rd 19..15=0 31..20=0x005 14..12=2 6..2=0x1C 1..0=3
+@rdinstret rd 19..15=0 31..20=0x006 14..12=2 6..2=0x1C 1..0=3