it will be used for providing to cpu name resolving class for parsing cpu model for system and user emulation code.
Along with change add target to null-machine test, so that when switch to CPU_RESOLVING_TYPE happens, test would ensure that null-mchine usecase still works. Signed-off-by: Igor Mammedov <imamm...@redhat.com> --- CC: Richard Henderson <r...@twiddle.net> CC: Alexander Graf <ag...@suse.de> CC: qemu-s3...@nongnu.org --- target/s390x/cpu.h | 1 + tests/machine-none-test.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 1a8b6b9..b2121cb 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -731,6 +731,7 @@ void s390_set_qemu_cpu_model(uint16_t type, uint8_t gen, uint8_t ec_ga, #define S390_CPU_TYPE_SUFFIX "-" TYPE_S390_CPU #define S390_CPU_TYPE_NAME(name) (name S390_CPU_TYPE_SUFFIX) +#define CPU_RESOLVING_TYPE TYPE_S390_CPU /* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero diff --git a/tests/machine-none-test.c b/tests/machine-none-test.c index 052b8c0..b3a346d 100644 --- a/tests/machine-none-test.c +++ b/tests/machine-none-test.c @@ -44,6 +44,7 @@ static struct arch2cpu cpus_map[] = { { "ppc", "604" }, { "ppc64", "power8e_v2.1" }, { "ppcemb", "440epb" }, + { "s390x", "qemu" }, }; static const char *get_cpu_model_by_arch(const char *arch) -- 2.7.4