diff mbox series

libpdbg: Add XBUS target

Message ID 20181023033528.31256-9-alistair@popple.id.au
State Superseded
Headers show
Series libpdbg: Add XBUS target | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning master/apply_patch Patch failed to apply
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Alistair Popple Oct. 23, 2018, 3:35 a.m. UTC
Signed-off-by: Alistair Popple <alistair@popple.id.au>
---
 libpdbg/xbus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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;
 }