increase regfile sizes to 128 entries
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 08:31:43 +0000 (08:31 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Nov 2018 08:31:43 +0000 (08:31 +0000)
riscv/processor.h

index 41a1f22a6ae81cc70694289c31b9c4bb124ccc88..22e9d855aec384002751375cfab45eddd8bfb5e2 100644 (file)
@@ -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?