projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d0c51
)
increase regfile sizes to 128 entries
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 2 Nov 2018 08:31:43 +0000
(08:31 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 2 Nov 2018 08:31:43 +0000
(08:31 +0000)
riscv/processor.h
patch
|
blob
|
history
diff --git
a/riscv/processor.h
b/riscv/processor.h
index 41a1f22a6ae81cc70694289c31b9c4bb124ccc88..22e9d855aec384002751375cfab45eddd8bfb5e2 100644
(file)
--- a/
riscv/processor.h
+++ b/
riscv/processor.h
@@
-96,8
+96,13
@@
struct state_t
static const int num_triggers = 4;
reg_t pc;
+#ifdef SPIKE_SV
+ regfile_t<reg_t, NXPR*4, true> XPR;
+ regfile_t<freg_t, NFPR*4, false> FPR;
+#else
regfile_t<reg_t, NXPR, true> XPR;
regfile_t<freg_t, NFPR, false> FPR;
+#endif
// control and status registers
reg_t prv; // TODO: Can this be an enum instead?