From 6280a104a07a5d7d78efb971b822307b2f786fe1 Mon Sep 17 00:00:00 2001 From: Thi Tran Date: Wed, 11 Jun 2014 11:36:37 -0500 Subject: 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 --- src/build/debug/simics-debug-framework.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/build/debug/simics-debug-framework.py') 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 -- cgit v1.2.3