Skip to content

Commit

Permalink
hosted/platform: Fixed a small bug that crept in when merging #1549 d…
Browse files Browse the repository at this point in the history
…ue to the API change in decode_access()
  • Loading branch information
dragonmux authored and esden committed Oct 30, 2023
1 parent 7aee1d6 commit 7fcb788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/hosted/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,15 +681,15 @@ static void decode_access(const uint16_t addr, const uint8_t rnw, const uint8_t

bool adiv5_write_no_check(adiv5_debug_port_s *dp, uint16_t addr, const uint32_t value)
{
decode_access(addr, ADIV5_LOW_WRITE, value);
decode_access(addr, ADIV5_LOW_WRITE, 0U, value);
DEBUG_PROTO("0x%08" PRIx32 "\n", value);
return dp->write_no_check(addr, value);
}

uint32_t adiv5_read_no_check(adiv5_debug_port_s *dp, uint16_t addr)
{
uint32_t result = dp->read_no_check(addr);
decode_access(addr, ADIV5_LOW_READ, 0U);
decode_access(addr, ADIV5_LOW_READ, 0U, 0U);
DEBUG_PROTO("0x%08" PRIx32 "\n", result);
return result;
}
Expand Down

0 comments on commit 7fcb788

Please sign in to comment.