mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ppc/pnv: Add a OCC model for POWER10
Our OCC model is very mininal and POWER10 can simply reuse the OCC model we introduced for POWER9. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
@@ -128,6 +128,7 @@ struct Pnv10Chip {
|
||||
PnvXive2 xive;
|
||||
Pnv9Psi psi;
|
||||
PnvLpcController lpc;
|
||||
PnvOCC occ;
|
||||
};
|
||||
|
||||
#define PNV10_PIR2FUSEDCORE(pir) (((pir) >> 3) & 0xf)
|
||||
|
||||
@@ -32,6 +32,8 @@ DECLARE_INSTANCE_CHECKER(PnvOCC, PNV8_OCC,
|
||||
#define TYPE_PNV9_OCC TYPE_PNV_OCC "-POWER9"
|
||||
DECLARE_INSTANCE_CHECKER(PnvOCC, PNV9_OCC,
|
||||
TYPE_PNV9_OCC)
|
||||
#define TYPE_PNV10_OCC TYPE_PNV_OCC "-POWER10"
|
||||
DECLARE_INSTANCE_CHECKER(PnvOCC, PNV10_OCC, TYPE_PNV10_OCC)
|
||||
|
||||
#define PNV_OCC_SENSOR_DATA_BLOCK_OFFSET 0x00580000
|
||||
#define PNV_OCC_SENSOR_DATA_BLOCK_SIZE 0x00025800
|
||||
|
||||
@@ -131,6 +131,9 @@ struct PnvXScomInterfaceClass {
|
||||
#define PNV10_XSCOM_PSIHB_BASE 0x3011D00
|
||||
#define PNV10_XSCOM_PSIHB_SIZE 0x100
|
||||
|
||||
#define PNV10_XSCOM_OCC_BASE PNV9_XSCOM_OCC_BASE
|
||||
#define PNV10_XSCOM_OCC_SIZE PNV9_XSCOM_OCC_SIZE
|
||||
|
||||
#define PNV10_XSCOM_XIVE2_BASE 0x2010800
|
||||
#define PNV10_XSCOM_XIVE2_SIZE 0x400
|
||||
|
||||
|
||||
Reference in New Issue
Block a user