|
@@ -146,8 +146,10 @@ static void pnv_pec_realize(DeviceState *dev, Error **errp)
|
|
|
pec->num_phbs = pecc->num_phbs[pec->index];
|
|
|
|
|
|
/* Create PHBs if running with defaults */
|
|
|
- for (i = 0; i < pec->num_phbs; i++) {
|
|
|
- pnv_pec_default_phb_realize(pec, i, errp);
|
|
|
+ if (defaults_enabled()) {
|
|
|
+ for (i = 0; i < pec->num_phbs; i++) {
|
|
|
+ pnv_pec_default_phb_realize(pec, i, errp);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* Initialize the XSCOM regions for the PEC registers */
|