summaryrefslogtreecommitdiffstats
path: root/src/build/debug/simics-debug-framework.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/debug/simics-debug-framework.py')
-rw-r--r--src/build/debug/simics-debug-framework.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py
index 1dc342adb..e087f9d8d 100644
--- a/src/build/debug/simics-debug-framework.py
+++ b/src/build/debug/simics-debug-framework.py
@@ -595,6 +595,13 @@ def magic_instruction_callback(user_arg, cpu, arg):
dateCommand = "shell \" date +'%s > ISTEP %d.%d' \""%(percent_s,major_istep,minor_istep)
SIM_run_alone(run_command, dateCommand )
+ if arg == 7021: # MAGIC_PRINT_TWO_REGS
+ first_num = cpu.r4
+ second_num = cpu.r5
+ percent_s = "%s"
+ dateCommand = "shell \" date +'%s > TRACE REGS: %d %d' \""%(percent_s,first_num,second_num)
+ SIM_run_alone(run_command, dateCommand )
+
if arg == 7055: # MAGIC_CONTINUOUS_TRACE
hb_tracBinaryBuffer = cpu.r4
hb_tracBinaryBufferSz = cpu.r5
OpenPOWER on IntegriCloud