Message ID | 20181023033528.31256-9-alistair@popple.id.au |
---|---|
State | Superseded |
Headers | show |
Series | libpdbg: Add XBUS target | expand |
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 |
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; }
Signed-off-by: Alistair Popple <alistair@popple.id.au> --- libpdbg/xbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)