[Pdbg] [PATCH] libpdbg: Add XBUS target

Alistair Popple alistair at popple.id.au
Tue Oct 23 14:35:27 AEDT 2018


Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
 libpdbg/xbus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libpdbg/xbus.c b/libpdbg/xbus.c
index b6e190d..28f7e39 100644
--- a/libpdbg/xbus.c
+++ b/libpdbg/xbus.c
@@ -30,9 +30,9 @@ static uint64_t xbus_translate(struct xbus *xbus, uint64_t addr)
 	uint64_t ring = (addr >> 10) & 0xf;
 
 	if (ring >= 0x3 && ring <= 0x5)
-		addr = SETFIELD(PPC_BITMASK32(18, 21), addr, 0x3 + xbus->ring_id);
+		addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x3 + xbus->ring_id);
 	else if (ring >= 0x6 && ring <= 8)
-		addr = SETFIELD(PPC_BITMASK32(18, 21), addr, 0x6 + xbus->ring_id);
+		addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x6 + xbus->ring_id);
 
 	return addr;
 }
-- 
2.11.0



More information about the Pdbg mailing list