Skip to content

Commit

Permalink
Updated the pibmem length for Axone in sbe-debug.py
Browse files Browse the repository at this point in the history
Change-Id: Ia7e4a591b109be7a31d7dde3b4423a7c21c2bbf2
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80760
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Tested-by: RAJA DAS <rajadas2@in.ibm.com>
  • Loading branch information
Raja Das committed Jul 22, 2019
1 parent 5b8210b commit 7d3fabc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/tools/debug/sbe-debug.py
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
# Contributors Listed Below - COPYRIGHT 2016,2018
# Contributors Listed Below - COPYRIGHT 2016,2019
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -93,7 +93,14 @@ def getSymbolInfo( symbol ):
if(re.search(symbol, key)!= None):
symAddr = val[0]
length = val[1]

if(ddsuffix == 'AXONE'):
baseAddr = 0xfffc8000
else:
baseAddr = 0xfffe8000

print "\n symAddress :", symAddr
print "\n baseAddress :", baseAddr
offset = int(symAddr, base = 16) - baseAddr;
return (hex(offset), length)

Expand Down Expand Up @@ -155,7 +162,10 @@ def collectTrace():
def forcedCollectTrace():
# Collect entire PIBMEM
offset = "0x00" # PIBMEM BASE
length = "0x16400"
if(ddsuffix == 'AXONE'):
length = "0x37e00"
else:
length = "0x16400"
if(target == 'FILE'):
createPibmemDumpFile( offset, length );
else:
Expand Down

0 comments on commit 7d3fabc

Please sign in to comment.