summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yunsup Lee <yunsup@cs.berkeley.edu>2012-03-13 23:39:57 -0700
committerGravatar Yunsup Lee <yunsup@cs.berkeley.edu>2012-03-13 23:39:57 -0700
commit577bc77f4ada83df15575e6a4a66e88949cbf138 (patch)
tree6e1cc01514672d056b054b39df85b9824dcde01c
parentf75f1a37513a68aa590048312c2a58b96a0a92df (diff)
add more instructions for vector exception handling
-rw-r--r--inst.v5
-rw-r--r--opcodes6
2 files changed, 9 insertions, 2 deletions
diff --git a/inst.v b/inst.v
index 13b6555..dc88796 100644
--- a/inst.v
+++ b/inst.v
@@ -107,7 +107,10 @@
`define VENQIMM1 32'b00000_?????_?????_1000000001_1111011
`define VENQIMM2 32'b00000_?????_?????_1000000010_1111011
`define VENQCNT 32'b00000_?????_?????_1000000011_1111011
-`define VWAITXCPT 32'b00000_00000_00000_1100000000_1111011
+`define VXCPTEVAC 32'b00000_?????_00000_1100000000_1111011
+`define VXCPTKILL 32'b00000_00000_00000_1100000001_1111011
+`define VXCPTWAIT 32'b00000_00000_00000_1100000010_1111011
+`define VXCPTHOLD 32'b00000_00000_00000_1100000011_1111011
`define FADD_S 32'b?????_?????_?????_00000_???_00_1010011
`define FSUB_S 32'b?????_?????_?????_00001_???_00_1010011
`define FMUL_S 32'b?????_?????_?????_00010_???_00_1010011
diff --git a/opcodes b/opcodes
index 8367e47..01ad683 100644
--- a/opcodes
+++ b/opcodes
@@ -133,11 +133,15 @@ mfpcr rd 26..22=0 rs2 16..7=2 6..2=0x1E 1..0=3
mtpcr 31..27=0 rs1 rs2 16..7=3 6..2=0x1E 1..0=3
eret 31..27=0 26..22=0 21..17=0 16..7=4 6..2=0x1E 1..0=3
cflush 31..27=0 26..22=0 21..17=0 16..7=5 6..2=0x1E 1..0=3
+
venqcmd 31..27=0 rs1 rs2 16..7=0x200 6..2=0x1E 1..0=3
venqimm1 31..27=0 rs1 rs2 16..7=0x201 6..2=0x1E 1..0=3
venqimm2 31..27=0 rs1 rs2 16..7=0x202 6..2=0x1E 1..0=3
venqcnt 31..27=0 rs1 rs2 16..7=0x203 6..2=0x1E 1..0=3
-vwaitxcpt 31..27=0 26..22=0 21..17=0 16..7=0x300 6..2=0x1E 1..0=3
+vxcptevac 31..27=0 rs1 21..17=0 16..7=0x300 6..2=0x1E 1..0=3
+vxcptkill 31..27=0 26..22=0 21..17=0 16..7=0x301 6..2=0x1E 1..0=3
+vxcptwait 31..27=0 26..22=0 21..17=0 16..7=0x302 6..2=0x1E 1..0=3
+vxcpthold 31..27=0 26..22=0 21..17=0 16..7=0x303 6..2=0x1E 1..0=3
# 0x7C-0x7F are reserved for >32b instructions