diff options
| author | Brad Bishop <bradleyb@us.ibm.com> | 2012-05-17 09:12:42 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-16 18:38:10 -0500 |
| commit | 19b2fa16137b10e1c34b71bec450a36eee1a0545 (patch) | |
| tree | 54f947b39816072ecd314036f3afc6bf7865a67c /src/build/debug/simics-debug-framework.py | |
| parent | 43c18103e9bdbbf1fd17bfcccf885c64d07f305c (diff) | |
| download | blackbird-hostboot-19b2fa16137b10e1c34b71bec450a36eee1a0545.tar.gz blackbird-hostboot-19b2fa16137b10e1c34b71bec450a36eee1a0545.zip | |
Initial attention handler support.
RTC: 40764
Change-Id: Ic5b5b3e80915cb4f0ee543baa6fe4abc51e07ad2
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1079
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/debug/simics-debug-framework.py')
| -rwxr-xr-x | src/build/debug/simics-debug-framework.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py index e7694e03c..3ddbcd388 100755 --- a/src/build/debug/simics-debug-framework.py +++ b/src/build/debug/simics-debug-framework.py @@ -42,6 +42,7 @@ import os import subprocess import re +import random # @class DebugFrameworkIPCMessage # @brief Wrapper class for constructing a properly formed IPC message for the @@ -377,6 +378,9 @@ def writeLongLong(address,n): # See src/include/arch/ppc.H for the definitions of the magic args. # Hostboot magic args should range 7000..7999. def magic_instruction_callback(user_arg, cpu, arg): + if arg == 7008: + cpu.r3 = random.randint(1, 0xffffffffffffffffL) + if arg == 7006: # MAGIC_SHUTDOWN # KernelMisc::shutdown() print "KernelMisc::shutdown() called." |

