From patchwork Sat Jan 26 16:55:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [qom-cpu, for-1.4, 03/14] cpu: Add model resolution support to CPUClass Date: Sat, 26 Jan 2013 06:55:13 -0000 From: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 215918 Message-Id: <51040A71.404@suse.de> To: qemu-devel@nongnu.org Cc: PowerPC , Alexander Graf , Richard Henderson Am 23.01.2013 13:07, schrieb Andreas Färber: > Introduce CPUClass::class_by_name and add a default implementation. [...] > diff --git a/include/qom/cpu.h b/include/qom/cpu.h > index 773caf9..cd0378e 100644 > --- a/include/qom/cpu.h > +++ b/include/qom/cpu.h > @@ -49,6 +49,8 @@ typedef struct CPUClass { > DeviceClass parent_class; > /*< public >*/ > > + ObjectClass *(*class_by_name)(const char *cpu_model); > + > void (*reset)(CPUState *cpu); > } CPUClass; > Documentation missing: Andreas diff --git a/include/qom/cpu.h b/include/qom/cpu.h index cd0378e..8097692 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -40,6 +40,8 @@ typedef struct CPUState CPUState; /** * CPUClass: + * @class_by_name: Callback to map -cpu command line model name to an + * instantiatable CPU type. * @reset: Callback to reset the #CPUState to its initial state. * * Represents a CPU family or model.