forked from bonzini/qemu
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pc: Eliminate all *_machine_options() functions
Finally eliminate all *_machine_options() functions, and instead make the class_init functions for older machine-types reuse the class_init functions from newer machine-types. To allow the class_init reuse, the the PC_COMPAT_* macros were change to not include the newer PC_COMPAT_* macros, like we did before. As a side-effect, we fix the duplication on the PC_Q35_COMPAT_* macros, which were expanded as the tree below: PC_Q35_COMPAT_1_4: PC_COMPAT_1_4: PC_COMPAT_1_5: PC_COMPAT_1_6: PC_COMPAT_1_7: PC_COMPAT_2_0: [pc-2.0 vars] [pc-1.7 vars] [pc-1.6 vars] [pc-1.5 vars] [pc-1.5 vars] PC_Q35_COMPAT_1_5: PC_COMPAT_1_5: PC_COMPAT_1_6: PC_COMPAT_1_7: PC_COMPAT_2_0: [pc-2.0 vars] [pc-1.7 vars] [pc-1.6 vars] [pc-1.5 vars] PC_Q35_COMPAT_1_6: PC_COMPAT_1_6: PC_COMPAT_1_7: PC_COMPAT_2_0: [pc-2.0 vars] [pc-1.7 vars] [pc-1.6 vars] PC_Q35_COMPAT_1_7: PC_COMPAT_1_7: PC_COMPAT_2_0: [pc-2.0 vars] [pc-1.7 vars] PC_Q35_COMPAT_2_0: PC_COMPAT_2_0: [pc-2.0 vars] [pc-q35-2.0 vars] [pc-q35-1.7 vars] [pc-q35-1.6 vars] [pc-q35-1.5 vars] [pc-q35-1.4 vars] In other words, the contents of PC_COMPAT_2_0 appeared 5 times inside PC_Q35_COMPAT_1_4. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.