summaryrefslogtreecommitdiffstats
path: root/src/build/debug
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2014-06-11 11:36:37 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-30 20:18:29 -0500
commit6280a104a07a5d7d78efb971b822307b2f786fe1 (patch)
tree57e0ff8fa70ecff00818a47485dbd75194b9be3f /src/build/debug
parent282ae28559bddf466d21c40ae75faaaacf1785c9 (diff)
downloadtalos-hostboot-6280a104a07a5d7d78efb971b822307b2f786fe1.tar.gz
talos-hostboot-6280a104a07a5d7d78efb971b822307b2f786fe1.zip
Load PAYLOAD from FFS partition.
Change-Id: Ib4f3b0631a9afb92fd5950b1636b8a3077684dbc Origin: Google Shared Technology Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11553 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/debug')
-rwxr-xr-xsrc/build/debug/simics-debug-framework.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py
index b0ae39551..de639f4fb 100755
--- a/src/build/debug/simics-debug-framework.py
+++ b/src/build/debug/simics-debug-framework.py
@@ -6,7 +6,10 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2011,2014
+# Contributors Listed Below - COPYRIGHT 2011,2014
+# [+] Google Inc.
+# [+] International Business Machines Corp.
+#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -503,6 +506,13 @@ def magic_instruction_callback(user_arg, cpu, arg):
cpu.r3 = 1
print "TimeManager::cv_isSimicsRunning = true"
+ if arg == 7012: # MAGIC_LOAD_PAYLOAD
+ load_addr = cpu.r3
+ flash_file = conf.fpga0.sfc_master_mmio_image.files[0][0]
+ print 'loading payload from', flash_file, 'to 0x%x' % load_addr
+ cmd = 'shell "fcp --force -o0 -R %s:PAYLOAD simicsPayload.ecc; ecc --remove --p8 simicsPayload.ecc simicsPayload"; load-file simicsPayload 0x%x' % (flash_file, load_addr)
+ SIM_run_alone( run_command, cmd )
+
if arg == 7055: # MAGIC_CONTINUOUS_TRACE
hb_tracBinaryBuffer = cpu.r4
hb_tracBinaryBufferSz = cpu.r5
OpenPOWER on IntegriCloud