Skip to content

Commit

Permalink
Forgot pieces behind
Browse files Browse the repository at this point in the history
create_seq_instructions returns new instructions and label
  • Loading branch information
Diego Ristè committed Jun 15, 2018
1 parent 7a5c7f4 commit dc7f5da
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions QGL/drivers/APS2Pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,8 @@ def create_instr_data(seqs, offsets, cache_lines):
([0], np.where(np.diff(cache_lines))[0] + 1))
label = None
for ct, seq in enumerate(zip_longest(*seqs, fillvalue=[])):
list(seq), offsets[cache_lines[ct]]
if need_prefetch else offsets[0], label = label)
new_instrs, label = create_seq_instructions(list(seq), offsets[cache_lines[ct]]
if need_prefetch else offsets[0], label = label)
seq_instrs.append(new_instrs)
#if we need wf prefetching and have moved waveform cache lines then inject prefetch for the next line
if need_prefetch and (ct in cache_line_changes):
Expand All @@ -915,9 +915,12 @@ def create_instr_data(seqs, offsets, cache_lines):
subroutines_start = -1
for ct, seq in enumerate(seq_instrs):
#Use last instruction being return as mark of start of subroutines
if (seq[-1].header >> 4) == RET:
subroutines_start = ct
break
try:
if (seq[-1].header >> 4) == RET:
subroutines_start = ct
break
except:
pass
instructions += seq

#if we have any subroutines then group in cache lines
Expand Down

0 comments on commit dc7f5da

Please sign in to comment.