Skip to content
Snippets Groups Projects
Commit e6c4b172 authored by Tingwei Zhang's avatar Tingwei Zhang
Browse files

dcc_parser: Fix loopoffset issue

Loop offset is lower config_loopoffset bits. Bit mask of that
should be bit 0 to bit config_loopoffset - 1.

Change-Id: Id80b8e05ececdfd9c626832a03a5dd6b0db29839
parent 04117f03
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ def read_config(config_pt):
else:
offset = 0
elif descriptor == loop_descriptor:
loop_offset = val & bm(config_loopoffset, 0)
loop_offset = val & bm(config_loopoffset - 1, 0)
loop_count = bvalsel(27, config_loopoffset, val)
if loop_offset == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment