Skip to content

Commit

Permalink
Reorder fail var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Jul 31, 2024
1 parent 854d4ac commit cc519b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integration/test_suites/smoke_test_dma/smoke_test_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ void main(void) {
soc_ifc_axi_dma_read_ahb_payload(AXI_SRAM_BASE_ADDR + AXI_SRAM_SIZE_BYTES/2, 0, read_payload, 16*4, 0);
for (uint8_t ii = 0; ii < 16; ii++) {
if (read_payload[ii] != send_payload[ii]) {
fail = 1;
VPRINTF(ERROR, "read_payload[%d] (0x%x) does not match send_payload[%d] (0x%x)\n", ii, read_payload[ii], ii, send_payload[ii]);
fail = 1;
}
}

Expand All @@ -165,8 +165,8 @@ void main(void) {
for (uint32_t dw = 0; dw < 16; dw++) {
mbox_read_payload[dw] = lsu_read_32(MBOX_DIR_BASE_ADDR + 0x8800 + (dw << 2));
if (mbox_read_payload[dw] != mbox_send_payload[dw]) {
fail = 1;
VPRINTF(ERROR, "mbox_read_payload[%d] (0x%x) does not match mbox_send_payload[%d] (0x%x)\n", dw, mbox_read_payload[dw], dw, mbox_send_payload[dw]);
fail = 1;
}
}
lsu_write_32(CLP_MBOX_CSR_MBOX_UNLOCK, MBOX_CSR_MBOX_UNLOCK_UNLOCK_MASK);
Expand Down

0 comments on commit cc519b9

Please sign in to comment.