From 616cc32c30ac0684edfd50ed44fc78ed1bc20884 Mon Sep 17 00:00:00 2001 From: Christopher Celio Date: Fri, 15 Aug 2014 15:38:41 -0700 Subject: Added PC histogram option. - Spits out all PCs (on 4B granularity) executed with count. - Requires a compile time configuration option. - Also requires a run-time flag. --- riscv/sim.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'riscv/sim.h') diff --git a/riscv/sim.h b/riscv/sim.h index d437c1a..9e1362e 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -23,6 +23,7 @@ public: bool running(); void stop(); void set_debug(bool value); + void set_histogram(bool value); void set_procs_debug(bool value); htif_isasim_t* get_htif() { return htif.get(); } @@ -48,6 +49,7 @@ private: size_t current_step; size_t current_proc; bool debug; + bool histogram_enabled; // provide a histogram of PCs // presents a prompt for introspection into the simulation void interactive(); -- cgit v1.1