mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
ppc: pnv: drop PnvChipClass::cpu_model field
deduce core type directly from chip type instead of maintaining type mapping in PnvChipClass::cpu_model. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
7383af1edc
commit
40abf43f72
4 changed files with 13 additions and 19 deletions
|
|
@ -69,7 +69,6 @@ typedef struct PnvChipClass {
|
|||
SysBusDeviceClass parent_class;
|
||||
|
||||
/*< public >*/
|
||||
const char *cpu_model;
|
||||
PnvChipType chip_type;
|
||||
uint64_t chip_cfam_id;
|
||||
uint64_t cores_mask;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,5 @@ typedef struct PnvCoreClass {
|
|||
|
||||
#define PNV_CORE_TYPE_SUFFIX "-" TYPE_PNV_CORE
|
||||
#define PNV_CORE_TYPE_NAME(cpu_model) cpu_model PNV_CORE_TYPE_SUFFIX
|
||||
extern char *pnv_core_typename(const char *model);
|
||||
|
||||
#endif /* _PPC_PNV_CORE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue