From 9b8b9b69d0b2560b2727330d5a20b5133af140af Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 6 May 2016 12:14:22 -0700 Subject: Make -H halt the core right out of reset. Added a test, too. --- riscv/processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'riscv/processor.h') diff --git a/riscv/processor.h b/riscv/processor.h index 721da2c..730ae78 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -101,7 +101,7 @@ struct state_t class processor_t : public abstract_device_t { public: - processor_t(const char* isa, sim_t* sim, uint32_t id); + processor_t(const char* isa, sim_t* sim, uint32_t id, bool halt_on_reset=false); ~processor_t(); void set_debug(bool value); @@ -146,6 +146,7 @@ private: std::string isa_string; bool run; // !reset bool histogram_enabled; + bool halt_on_reset; std::vector instructions; std::map pc_histogram; -- cgit v1.1