|
@@ -38,6 +38,7 @@
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
|
#include "sysemu/reset.h"
|
|
|
#endif
|
|
|
+#include "hw/s390x/cpu-topology.h"
|
|
|
|
|
|
#define CR0_RESET 0xE0UL
|
|
|
#define CR14_RESET 0xC2000000UL;
|
|
@@ -146,6 +147,14 @@ static void s390_query_cpu_fast(CPUState *cpu, CpuInfoFast *value)
|
|
|
S390CPU *s390_cpu = S390_CPU(cpu);
|
|
|
|
|
|
value->u.s390x.cpu_state = s390_cpu->env.cpu_state;
|
|
|
+#if !defined(CONFIG_USER_ONLY)
|
|
|
+ if (s390_has_topology()) {
|
|
|
+ value->u.s390x.has_dedicated = true;
|
|
|
+ value->u.s390x.dedicated = s390_cpu->env.dedicated;
|
|
|
+ value->u.s390x.has_entitlement = true;
|
|
|
+ value->u.s390x.entitlement = s390_cpu->env.entitlement;
|
|
|
+ }
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
/* S390CPUClass::reset() */
|