diff options
author | Scott Beamer <sbeamer@eecs.berkeley.edu> | 2014-07-24 17:05:53 -0700 |
---|---|---|
committer | Scott Beamer <sbeamer@eecs.berkeley.edu> | 2014-07-24 17:05:53 -0700 |
commit | fcc557da9d7a49ef6f367f9d5158d03f2fae443f (patch) | |
tree | 665e9754bee8f5a214e2c47329ef6af443035f69 /riscv/disasm.h | |
parent | 7812ee06e6e1d3ffd0195b010cb095ef36b0a4eb (diff) | |
download | spike-fcc557da9d7a49ef6f367f9d5158d03f2fae443f.zip spike-fcc557da9d7a49ef6f367f9d5158d03f2fae443f.tar.gz spike-fcc557da9d7a49ef6f367f9d5158d03f2fae443f.tar.bz2 |
added support for register convention names in debug mode
Diffstat (limited to 'riscv/disasm.h')
-rw-r--r-- | riscv/disasm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/riscv/disasm.h b/riscv/disasm.h index b5aa6de..58a518a 100644 --- a/riscv/disasm.h +++ b/riscv/disasm.h @@ -8,6 +8,20 @@ #include <sstream> #include <vector> +static const char* xpr_name[] = { + "zero", "ra", "s0", "s1", "s2", "s3", "s4", "s5", + "s6", "s7", "s8", "s9", "s10", "s11", "sp", "tp", + "v0", "v1", "a0", "a1", "a2", "a3", "a4", "a5", + "a6", "a7", "t0", "t1", "t2", "t3", "t4", "gp" +}; + +static const char* fpr_name[] = { + "fs0", "fs1", "fs2", "fs3", "fs4", "fs5", "fs6", "fs7", + "fs8", "fs9", "fs10", "fs11", "fs12", "fs13", "fs14", "fs15", + "fv0", "fv1", "fa0", "fa1", "fa2", "fa3", "fa4", "fa5", + "fa6", "fa7", "ft0", "ft1", "ft2", "ft3", "ft4", "ft5" +}; + class arg_t { public: |