diff options
-rwxr-xr-x | sbe/build/simics/simics-debug-framework.py | 6 | ||||
-rw-r--r-- | sbe/image/img_defs.mk | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbe/build/simics/simics-debug-framework.py b/sbe/build/simics/simics-debug-framework.py index 4058ae97..e9a903c9 100755 --- a/sbe/build/simics/simics-debug-framework.py +++ b/sbe/build/simics/simics-debug-framework.py @@ -41,12 +41,12 @@ def fillSymTable(): f = open( symFile, 'r')
for line in f:
words = line.split()
- if( len(words) == 3):
- syms[words[2]] = words[0]
+ if( len( words ) == 4 ):
+ syms[words[3]] = [words[0], words[1]]
def collectTrace ( procNr ):
fileName = "sbe_" + `procNr` + "_tracMERG"
- cmd1 = "pipe \"p9Proc" + `procNr` + ".sbe.mibo_space.x 0x" + syms['g_pk_trace_buf'] + " 0x2028\" \"sed 's/^p:0x........ //g' | sed 's/ ................$//g' | sed 's/ //g' | xxd -r -p> ppetrace.bin\""
+ cmd1 = "pipe \"p9Proc" + `procNr` + ".sbe.mibo_space.x 0x" + syms['g_pk_trace_buf'][0] + " 0x2028\" \"sed 's/^p:0x........ //g' | sed 's/ ................$//g' | sed 's/ //g' | xxd -r -p> ppetrace.bin\""
cmd2 = "shell \"" + SBE_TOOLS_PATH + "/ppe2fsp ppetrace.bin sbetrace.bin \""
cmd3 = "shell \"" + SBE_TOOLS_PATH + "/fsp-trace -s " + SBE_TOOLS_PATH + "/trexStringFile sbetrace.bin >" + fileName + "\""
cmd4 = "shell \"" + "cat " + fileName + "\""
diff --git a/sbe/image/img_defs.mk b/sbe/image/img_defs.mk index 78e816a2..76a9b51a 100644 --- a/sbe/image/img_defs.mk +++ b/sbe/image/img_defs.mk @@ -172,7 +172,7 @@ CC = $(PPETRACEPP_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc AS = $(BINUTILS-TOOL-PREFIX)as AR = $(BINUTILS-TOOL-PREFIX)ar LD = $(BINUTILS-TOOL-PREFIX)ld -NM = $(BINUTILS-TOOL-PREFIX)nm +NM = $(BINUTILS-TOOL-PREFIX)nm -S OBJDUMP = $(BINUTILS-TOOL-PREFIX)objdump OBJCOPY = $(BINUTILS-TOOL-PREFIX)objcopy TCPP = $(PPETRACEPP_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc |