Add --disassemble-test-code.
Much of the time, the infrastructure (RegisterDump) code is distracting,
and often longer than the test. The new --disassemble-test-code option
omits the boiler-plate, and shows only the test code itself.
The normal --disassemble option still works as it did before.
Change-Id: I421f15734f912ef1e7a9f0d5a018c93d4a03e51a
diff --git a/test/test-runner.h b/test/test-runner.h
index 2b91b88..8336105 100644
--- a/test/test-runner.h
+++ b/test/test-runner.h
@@ -58,6 +58,12 @@
static void set_trace_branch(bool value) { trace_branch_ = value; }
static bool disassemble() { return disassemble_; }
static void set_disassemble(bool value) { disassemble_ = value; }
+ static bool disassemble_infrastructure() {
+ return disassemble_infrastructure_;
+ }
+ static void set_disassemble_infrastructure(bool value) {
+ disassemble_infrastructure_ = 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_; }
@@ -84,6 +90,7 @@
static bool trace_write_;
static bool trace_branch_;
static bool disassemble_;
+ static bool disassemble_infrastructure_;
static bool coloured_trace_;
static bool instruction_stats_;
static bool generate_test_trace_;