mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
committed by
David Gibson
parent
7383af1edc
commit
40abf43f72
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user