Skip to content

Commit

Permalink
TRACE: Fix trampoline pc to new implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioOpenHWGroup committed Nov 9, 2023
1 parent fc32d46 commit f41c112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verif/sim/cva6_spike_log_to_trace_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def read_spike_trace(path, full_trace):
If full_trace is true, extract operands from the disassembled instructions.
Since Spike has a strange trampoline that always runs at the start, we skip
instructions up to and including the one at PC 0x1010 (the end of the
instructions up to and including the one at PC 0x10010 (the end of the
trampoline). At the end of a DV program, there's an ECALL instruction, which
we take as a signal to stop checking, so we ditch everything that follows
that instruction.
Expand All @@ -121,7 +121,7 @@ def read_spike_trace(path, full_trace):
# true. Otherwise, we are in state EFFECT if instr is not None, otherwise we
# are in state INSTR.

end_trampoline_re = re.compile(r'core.*: 0x0*1010 ')
end_trampoline_re = re.compile(r'core.*: 0x0*10010 ')

in_trampoline = True
instr = None
Expand Down

0 comments on commit f41c112

Please sign in to comment.