aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xparse-opcodes19
1 files changed, 18 insertions, 1 deletions
diff --git a/parse-opcodes b/parse-opcodes
index 5140509..1bd628a 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -23,6 +23,7 @@ arglut['fm'] = (31,28)
arglut['pred'] = (27,24)
arglut['succ'] = (23,20)
arglut['rm'] = (14,12)
+arglut['funct3'] = (14,12)
arglut['imm20'] = (31,12)
arglut['jimm20'] = (31,12)
arglut['imm12'] = (31,20)
@@ -33,7 +34,18 @@ arglut['bimm12lo'] = (11,7)
arglut['zimm'] = (19,15)
arglut['shamt'] = (25,20)
arglut['shamtw'] = (24,20)
-arglut['vseglen'] = (31,29)
+
+# for vectors
+arglut['vd'] = (11,7)
+arglut['vs3'] = (11,7)
+arglut['vs1'] = (19,15)
+arglut['vs2'] = (24,20)
+arglut['vm'] = (25,25)
+arglut['amoop'] = (31,27)
+arglut['nf'] = (31,29)
+arglut['simm5'] = (19,15)
+arglut['zimm11'] = (30,20)
+
causes = [
(0x00, 'misaligned fetch'),
@@ -61,6 +73,9 @@ csrs = [
(0x000, 'ustatus'),
(0x004, 'uie'),
(0x005, 'utvec'),
+ (0x008, 'vstart'),
+ (0x009, 'vxsat'),
+ (0x00A, 'vxrm'),
(0x040, 'uscratch'),
(0x041, 'uepc'),
(0x042, 'ucause'),
@@ -100,6 +115,8 @@ csrs = [
(0xC1D, 'hpmcounter29'),
(0xC1E, 'hpmcounter30'),
(0xC1F, 'hpmcounter31'),
+ (0xC20, 'vl'),
+ (0xC21, 'vtype'),
# Standard Supervisor R/W
(0x100, 'sstatus'),