projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added PC histogram option.
[riscv-isa-sim.git]
/
riscv
/
sim.h
diff --git
a/riscv/sim.h
b/riscv/sim.h
index d437c1ab369b84ba1f57ca52993154169e1277d5..9e1362e08343ad5fa20a71abe5b59e31102b118d 100644
(file)
--- a/
riscv/sim.h
+++ b/
riscv/sim.h
@@
-23,6
+23,7
@@
public:
bool running();
void stop();
void set_debug(bool value);
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(); }
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;
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();
// presents a prompt for introspection into the simulation
void interactive();