|
@@ -336,7 +336,7 @@ static void spapr_xive_realize(DeviceState *dev, Error **errp)
|
|
|
sysbus_init_mmio(SYS_BUS_DEVICE(xive), &end_xsrc->esb_mmio);
|
|
|
|
|
|
/* Set the mapping address of the END ESB pages after the source ESBs */
|
|
|
- xive->end_base = xive->vc_base + (1ull << xsrc->esb_shift) * xsrc->nr_irqs;
|
|
|
+ xive->end_base = xive->vc_base + xive_source_esb_len(xsrc);
|
|
|
|
|
|
/*
|
|
|
* Allocate the routing tables
|