Skip to content

Commit

Permalink
Workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Nov 3, 2023
1 parent f1b24bd commit de02c82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/regression/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ def load_segment(segment: Segment, *, disable_write_protection: bool = False) ->
if flags_raw & P_FLAGS.PF_X:
# align instruction section to full icache lines
align_bits = config.icache_block_size_bits
# workaround for fetching/stalling issue
align_bits += 1
else:
# align to memory words
align_bits = log2_int(config.xlen // 8)
align_bits = 0

align_data_front = seg_start - align_down_to_power_of_two(seg_start, align_bits)
align_data_back = align_to_power_of_two(seg_end, align_bits) - seg_end
Expand Down

0 comments on commit de02c82

Please sign in to comment.