diff options
author | David Hildenbrand <david@redhat.com> | 2017-09-13 15:24:02 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2017-09-19 18:31:31 +0200 |
commit | ef2974cc270d51959ce90df6b4d4d41635d7a603 (patch) | |
tree | ea832bae4384b4161433020b6865854d049b10e8 /target/s390x/cpu_models.h | |
parent | 19c69829d64ff3101a91663354a9d9bc755cd642 (diff) | |
download | qemu-ef2974cc270d51959ce90df6b4d4d41635d7a603.zip qemu-ef2974cc270d51959ce90df6b4d4d41635d7a603.tar.gz qemu-ef2974cc270d51959ce90df6b4d4d41635d7a603.tar.bz2 |
target/s390x: move some s390x typedefs to cpu-qom.h
This allows us to drop inclusion of cpu_models.h in cpu-qom.h, and
prepares for using cpu-qom.h as a s390 specific version of typedefs.h
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170913132417.24384-8-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/cpu_models.h')
-rw-r--r-- | target/s390x/cpu_models.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/s390x/cpu_models.h b/target/s390x/cpu_models.h index c0bee15..4c6dee1 100644 --- a/target/s390x/cpu_models.h +++ b/target/s390x/cpu_models.h @@ -17,7 +17,7 @@ #include "qom/cpu.h" /* static CPU definition */ -typedef struct S390CPUDef { +struct S390CPUDef { const char *name; /* name exposed to the user */ const char *desc; /* description exposed to the user */ uint8_t gen; /* hw generation identification */ @@ -37,10 +37,10 @@ typedef struct S390CPUDef { S390FeatBitmap full_feat; /* used to init full_feat from generated data */ S390FeatInit full_init; -} S390CPUDef; +}; /* CPU model based on a CPU definition */ -typedef struct S390CPUModel { +struct S390CPUModel { const S390CPUDef *def; S390FeatBitmap features; /* values copied from the "host" model, can change during migration */ @@ -48,7 +48,7 @@ typedef struct S390CPUModel { uint32_t cpu_id; /* CPU id */ uint8_t cpu_id_format; /* CPU id format bit */ uint8_t cpu_ver; /* CPU version, usually "ff" for kvm */ -} S390CPUModel; +}; /* * CPU ID |