]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/riscv/sifive_u.h
riscv: sifive_u: Update hart configuration to reflect the real FU540 SoC
[mirror_qemu.git] / include / hw / riscv / sifive_u.h
index 6d227410f849297da167b9f2eb55e055b274f850..6b2b5b68e265bb6759f04f84a937ceb53bec2367 100644 (file)
@@ -32,7 +32,10 @@ typedef struct SiFiveUSoCState {
     SysBusDevice parent_obj;
 
     /*< public >*/
-    RISCVHartArrayState cpus;
+    CPUClusterState e_cluster;
+    CPUClusterState u_cluster;
+    RISCVHartArrayState e_cpus;
+    RISCVHartArrayState u_cpus;
     DeviceState *plic;
     CadenceGEMState gem;
 } SiFiveUSoCState;
@@ -70,6 +73,7 @@ enum {
 };
 
 #define SIFIVE_U_MANAGEMENT_CPU_COUNT   1
+#define SIFIVE_U_COMPUTE_CPU_COUNT      4
 
 #define SIFIVE_U_PLIC_HART_CONFIG "MS"
 #define SIFIVE_U_PLIC_NUM_SOURCES 54