Introduce --disassemble option to test-runner
This patch adds a "--disassemble" option that one can pass to the
test-runner binary so that generated instructions will be printed to
standard output before executing.
Change-Id: Idb767a43d8f2bd8fdd4fa3718b973fb35204d0e0
diff --git a/test/test-runner.h b/test/test-runner.h
index 5b60f65..e51a578 100644
--- a/test/test-runner.h
+++ b/test/test-runner.h
@@ -52,6 +52,8 @@
static void set_trace_reg(bool value) { trace_reg_ = value; }
static bool trace_write() { return trace_write_; }
static void set_trace_write(bool value) { trace_write_ = value; }
+ static bool disassemble() { return disassemble_; }
+ static void set_disassemble(bool value) { disassemble_ = value; }
static bool coloured_trace() { return coloured_trace_; }
static void set_coloured_trace(bool value) { coloured_trace_ = value; }
static bool instruction_stats() { return instruction_stats_; }
@@ -75,6 +77,7 @@
static bool trace_sim_;
static bool trace_reg_;
static bool trace_write_;
+ static bool disassemble_;
static bool coloured_trace_;
static bool instruction_stats_;
static bool generate_test_trace_;