mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ppc/pnv: add a core mask to PnvChip
This will be used to build real HW ids for the cores and enforce some limits on the available cores per chip. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
e997040e3f
commit
397a79e757
2 changed files with 76 additions and 1 deletions
|
@ -44,6 +44,9 @@ typedef struct PnvChip {
|
|||
uint32_t chip_id;
|
||||
uint64_t ram_start;
|
||||
uint64_t ram_size;
|
||||
|
||||
uint32_t nr_cores;
|
||||
uint64_t cores_mask;
|
||||
} PnvChip;
|
||||
|
||||
typedef struct PnvChipClass {
|
||||
|
@ -54,6 +57,7 @@ typedef struct PnvChipClass {
|
|||
const char *cpu_model;
|
||||
PnvChipType chip_type;
|
||||
uint64_t chip_cfam_id;
|
||||
uint64_t cores_mask;
|
||||
} PnvChipClass;
|
||||
|
||||
#define TYPE_PNV_CHIP_POWER8E TYPE_PNV_CHIP "-POWER8E"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue