aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscv/sim.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/riscv/sim.h b/riscv/sim.h
index 6e69078..7689d54 100644
--- a/riscv/sim.h
+++ b/riscv/sim.h
@@ -59,6 +59,10 @@ public:
// Callback for processors to let the simulation know they were reset.
virtual void proc_reset(unsigned id) override;
+ static const size_t INTERLEAVE = 5000;
+ static const size_t INSNS_PER_RTC_TICK = 100; // 10 MHz clock for 1 BIPS core
+ static const size_t CPU_HZ = 1000000000; // 1GHz CPU
+
private:
isa_parser_t isa;
const cfg_t * const cfg;
@@ -82,9 +86,6 @@ private:
processor_t* get_core(const std::string& i);
void step(size_t n); // step through simulation
- static const size_t INTERLEAVE = 5000;
- static const size_t INSNS_PER_RTC_TICK = 100; // 10 MHz clock for 1 BIPS core
- static const size_t CPU_HZ = 1000000000; // 1GHz CPU
size_t current_step;
size_t current_proc;
bool debug;