Skip to content

Commit

Permalink
sw: Fix incorrect check of HW feature present in AXI-RT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Nov 27, 2024
1 parent bbff9be commit 7fd8d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sw/tests/axirt_budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
int main(void) {

// Immediately return an error if DMA is not present in cheshire
CHECK_ASSERT(-1, !chs_hw_feature_present(CHESHIRE_HW_FEATURES_DMA_BIT));
CHECK_ASSERT(-1, chs_hw_feature_present(CHESHIRE_HW_FEATURES_DMA_BIT));

uint32_t cheshire_num_harts = *reg32(&__base_regs, CHESHIRE_NUM_INT_HARTS_REG_OFFSET);

Expand Down
2 changes: 1 addition & 1 deletion sw/tests/axirt_budget_isolate.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
int main(void) {

// Immediately return an error if DMA is not present in cheshire
CHECK_ASSERT(-1, !chs_hw_feature_present(CHESHIRE_HW_FEATURES_DMA_BIT));
CHECK_ASSERT(-1, chs_hw_feature_present(CHESHIRE_HW_FEATURES_DMA_BIT));

uint32_t cheshire_num_harts = *reg32(&__base_regs, CHESHIRE_NUM_INT_HARTS_REG_OFFSET);

Expand Down

0 comments on commit 7fd8d5c

Please sign in to comment.