Skip to content

Commit

Permalink
riscv_debug: Fix building with MSVC which does not allow C23 style in…
Browse files Browse the repository at this point in the history
…itialization
  • Loading branch information
amyspark authored and dragonmux committed Jan 27, 2024
1 parent 2d5b774 commit b59adea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/riscv_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static uint32_t riscv_hart_discover_isa(riscv_hart_s *const hart)
do {
DEBUG_INFO("Attempting %u-bit read on misa\n", hart->access_width);
/* Try reading the register on the guessed width */
uint32_t isa_data[4] = {};
uint32_t isa_data[4] = {0U};
bool result = riscv_csr_read(hart, RV_ISA, isa_data);
if (result) {
if (hart->access_width == 128U)
Expand Down

0 comments on commit b59adea

Please sign in to comment.