Skip to content

Commit

Permalink
software/user/litepcie_uti: Fix get_data_mask for 32-bit data_width.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 2, 2024
1 parent 88d43f0 commit abe9418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litepcie/software/user/litepcie_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static uint32_t get_data_mask(int data_width)
mask = 0;
for (i = 0; i < 32/get_next_pow2(data_width); i++) {
mask <<= get_next_pow2(data_width);
mask |= (1 << data_width) - 1;
mask |= ((uint64_t) 1 << data_width) - 1;
}
return mask;
}
Expand Down

0 comments on commit abe9418

Please sign in to comment.