pnv.c (6f43d2551fba2569e67c8c1ac4e8768a566738eb) pnv.c (cf0ee6955cc2f7f256e44c4f8198f69aae6ea39c)
1/*
2 * QEMU PowerPC PowerNV machine model
3 *
4 * Copyright (c) 2016, IBM Corporation.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 1379 unchanged lines hidden (view full) ---

1388
1389 for (i = 0; i < chip->num_pecs; i++) {
1390 PnvPhb4PecState *pec = &chip9->pecs[i];
1391 PnvPhb4PecClass *pecc = PNV_PHB4_PEC_GET_CLASS(pec);
1392 uint32_t pec_nest_base;
1393 uint32_t pec_pci_base;
1394
1395 object_property_set_int(OBJECT(pec), "index", i, &error_fatal);
1/*
2 * QEMU PowerPC PowerNV machine model
3 *
4 * Copyright (c) 2016, IBM Corporation.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 1379 unchanged lines hidden (view full) ---

1388
1389 for (i = 0; i < chip->num_pecs; i++) {
1390 PnvPhb4PecState *pec = &chip9->pecs[i];
1391 PnvPhb4PecClass *pecc = PNV_PHB4_PEC_GET_CLASS(pec);
1392 uint32_t pec_nest_base;
1393 uint32_t pec_pci_base;
1394
1395 object_property_set_int(OBJECT(pec), "index", i, &error_fatal);
1396 /*
1397 * PEC0 -> 1 stack
1398 * PEC1 -> 2 stacks
1399 * PEC2 -> 3 stacks
1400 */
1401 object_property_set_int(OBJECT(pec), "num-stacks", i + 1,
1402 &error_fatal);
1403 object_property_set_int(OBJECT(pec), "chip-id", chip->chip_id,
1404 &error_fatal);
1405 object_property_set_link(OBJECT(pec), "chip", OBJECT(chip),
1406 &error_fatal);
1407 object_property_set_link(OBJECT(pec), "system-memory",
1408 OBJECT(get_system_memory()), &error_abort);
1409 if (!qdev_realize(DEVICE(pec), NULL, errp)) {
1410 return;

--- 751 unchanged lines hidden ---
1396 object_property_set_int(OBJECT(pec), "chip-id", chip->chip_id,
1397 &error_fatal);
1398 object_property_set_link(OBJECT(pec), "chip", OBJECT(chip),
1399 &error_fatal);
1400 object_property_set_link(OBJECT(pec), "system-memory",
1401 OBJECT(get_system_memory()), &error_abort);
1402 if (!qdev_realize(DEVICE(pec), NULL, errp)) {
1403 return;

--- 751 unchanged lines hidden ---