]> Git Repo - qemu.git/blobdiff - include/qom/cpu.h
cpu: Introduce CPUClass::parse_features() hook
[qemu.git] / include / qom / cpu.h
index 89d5dd126f1402aff42ff6aa9bb522423ee150c0..3703b6864ed1e572f8d5ae7231c77db62f0f4714 100644 (file)
@@ -68,6 +68,7 @@ struct TranslationBlock;
  * CPUClass:
  * @class_by_name: Callback to map -cpu command line model name to an
  * instantiatable CPU type.
+ * @parse_features: Callback to parse command line arguments.
  * @reset: Callback to reset the #CPUState to its initial state.
  * @reset_dump_flags: #CPUDumpFlags to use for reset logging.
  * @has_work: Callback for checking if there is work to do.
@@ -97,6 +98,7 @@ typedef struct CPUClass {
     /*< public >*/
 
     ObjectClass *(*class_by_name)(const char *cpu_model);
+    void (*parse_features)(CPUState *cpu, char *str, Error **errp);
 
     void (*reset)(CPUState *cpu);
     int reset_dump_flags;
This page took 0.021579 seconds and 4 git commands to generate.