summaryrefslogtreecommitdiff
path: root/target/s390x/cpu_models.h
diff options
context:
space:
mode:
authorJason J. Herne <jjherne@linux.vnet.ibm.com>2017-04-10 09:39:00 -0400
committerChristian Borntraeger <borntraeger@de.ibm.com>2017-07-14 12:29:47 +0200
commitc9ad8a7a53b9f167626a32fe7c1116f8844156db (patch)
tree26cfa2ad3a77956c9ad7ca170c7d97062d3cba63 /target/s390x/cpu_models.h
parentec3aadb13ed601f8d77bd4efd80b545ddc84c697 (diff)
downloadqemu-c9ad8a7a53b9f167626a32fe7c1116f8844156db.zip
s390x/cpumodel: provide compat handling for new cpu features
Provide a mechanism to disable features in compatibility machines. Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target/s390x/cpu_models.h')
-rw-r--r--target/s390x/cpu_models.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/s390x/cpu_models.h b/target/s390x/cpu_models.h
index d41f8d6e38..c0bee15d7a 100644
--- a/target/s390x/cpu_models.h
+++ b/target/s390x/cpu_models.h
@@ -72,6 +72,8 @@ typedef struct S390CPUModel {
#define ibc_gen(x) (x == 0 ? 0 : ((x >> 4) + S390_GEN_Z10))
#define ibc_ec_ga(x) (x & 0xf)
+void s390_cpudef_featoff(uint8_t gen, uint8_t ec_ga, S390Feat feat);
+void s390_cpudef_featoff_greater(uint8_t gen, uint8_t ec_ga, S390Feat feat);
uint32_t s390_get_hmfai(void);
uint8_t s390_get_mha_pow(void);
uint32_t s390_get_ibc_val(void);