From 09f1c0085d9f1778755ed8a473555389f4a3c4a1 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 29 Oct 2023 23:17:48 +0000 Subject: [PATCH] hosted/platform: Fixed a small bug that crept in when merging #1549 due to the API change in decode_access() --- src/platforms/hosted/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/hosted/platform.c b/src/platforms/hosted/platform.c index bd1d5ce5a05..234da2ac55c 100644 --- a/src/platforms/hosted/platform.c +++ b/src/platforms/hosted/platform.c @@ -681,7 +681,7 @@ 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); } @@ -689,7 +689,7 @@ bool adiv5_write_no_check(adiv5_debug_port_s *dp, uint16_t addr, const uint32_t 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; }