[Pdbg] [PATCH 3/5] main: Implement putscom with mask
Amitay Isaacs
amitay at ozlabs.org
Fri Jul 19 16:03:46 AEST 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/scom.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/scom.c b/src/scom.c
index 1f8e6c7..4c020d4 100644
--- a/src/scom.c
+++ b/src/scom.c
@@ -102,8 +102,7 @@ int putscom(uint64_t addr, uint64_t data, uint64_t mask)
xlate_addr = addr;
addr_base = pdbg_address_absolute(target, &xlate_addr);
- /* TODO: Restore the <mask> functionality */
- if (pib_write(target, addr, data)) {
+ if (pib_write_mask(target, addr, data, mask)) {
printf("p%d: 0x%016" PRIx64 " failed (%s)\n", pdbg_target_index(addr_base), xlate_addr, path);
free(path);
continue;
--
2.21.0
More information about the Pdbg
mailing list