target-i386: List CPU models using subclass list

Instead of using the builtin_x86_defs array, use the QOM subclass
list to list CPU models on "-cpu ?" and "query-cpu-definitions".

Backports commit ee465a3ef77c2b2975ffa71c72208c05b3f3970d from qemu
This commit is contained in:
Eduardo Habkost 2018-02-26 08:16:57 -05:00 committed by Lioncash
parent 200771d0ba
commit 594cbeaa06
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -63,6 +63,10 @@ typedef struct X86CPUClass {
bool kvm_required; bool kvm_required;
/* Optional description of CPU model.
* If unavailable, cpu_def->model_id is used */
const char *model_description;
DeviceRealize parent_realize; DeviceRealize parent_realize;
void (*parent_reset)(CPUState *cpu); void (*parent_reset)(CPUState *cpu);
} X86CPUClass; } X86CPUClass;