aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2011-04-04 00:08:18 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2011-04-04 02:10:14 -0700
commitad611c98d05d2b7ef8fcce20d20fe517e8077848 (patch)
tree8a282b8b4fe6645deeb7b022b36122e5221b3811
parent5f1c52e53e863b9a295b60d9eb3bc35a8a9b6d59 (diff)
downloadriscv-opcodes-ad611c98d05d2b7ef8fcce20d20fe517e8077848.zip
riscv-opcodes-ad611c98d05d2b7ef8fcce20d20fe517e8077848.tar.gz
riscv-opcodes-ad611c98d05d2b7ef8fcce20d20fe517e8077848.tar.bz2
[opcodes,pk,sim,xcc] add stop,utidx instructions
-rw-r--r--inst.v2
-rw-r--r--instr-table.tex20
-rw-r--r--opcodes2
3 files changed, 24 insertions, 0 deletions
diff --git a/inst.v b/inst.v
index de1cd33..403ebd8 100644
--- a/inst.v
+++ b/inst.v
@@ -88,6 +88,8 @@
`define FENCE_G_CV 32'b?????_?????_????????????_111_0101111
`define SYSCALL 32'b00000_00000_00000_0000000000_1110111
`define BREAK 32'b00000_00000_00000_0000000001_1110111
+`define STOP 32'b00000_00000_00000_0000000010_1110111
+`define UTIDX 32'b00000_00000_00000_0000000011_1110111
`define EI 32'b?????_00000_00000_0000000000_1111011
`define DI 32'b?????_00000_00000_0000000001_1111011
`define MFPCR 32'b?????_00000_?????_0000000010_1111011
diff --git a/instr-table.tex b/instr-table.tex
index 2ce8687..4b3ec7e 100644
--- a/instr-table.tex
+++ b/instr-table.tex
@@ -2020,6 +2020,26 @@
\cline{2-11}
+&
+\multicolumn{1}{|c|}{00000} &
+\multicolumn{1}{c|}{00000} &
+\multicolumn{1}{c|}{00000} &
+\multicolumn{4}{c|}{0000000} &
+\multicolumn{2}{c|}{010} &
+\multicolumn{1}{c|}{1110111} & STOP \\
+\cline{2-11}
+
+
+&
+\multicolumn{1}{|c|}{00000} &
+\multicolumn{1}{c|}{00000} &
+\multicolumn{1}{c|}{00000} &
+\multicolumn{4}{c|}{0000000} &
+\multicolumn{2}{c|}{011} &
+\multicolumn{1}{c|}{1110111} & UTIDX \\
+\cline{2-11}
+
+
\end{tabular}
\end{center}
\end{small}
diff --git a/opcodes b/opcodes
index 0097df0..8e5c943 100644
--- a/opcodes
+++ b/opcodes
@@ -115,6 +115,8 @@ fence.g.cv rd rs1 imm12 9..7=7 6..2=0x0B 1..0=3
syscall 31..27=0 26..22=0 21..17=0 16..7=0 6..2=0x1D 1..0=3
break 31..27=0 26..22=0 21..17=0 16..7=1 6..2=0x1D 1..0=3
+stop 31..27=0 26..22=0 21..17=0 16..7=2 6..2=0x1D 1..0=3
+utidx 31..27=0 26..22=0 21..17=0 16..7=3 6..2=0x1D 1..0=3
ei rd 26..22=0 21..17=0 16..7=0 6..2=0x1E 1..0=3
di rd 26..22=0 21..17=0 16..7=1 6..2=0x1E 1..0=3