This removes some duplication in the CPU feature checking and filtering code in cpu.c, and as a nice side-effect, will make the "check" and "enforce" flags work in TCG mode too.
Changes v2 -> v3: * Rebase after QEMU v2.0.0 (onto commit 2d03b49) * Added new patch: target-i386: support "invariant tsc" flag * Added new patch: target-i386: Support "-cpu host" in TCG mode Changes v1 -> v2: * Rebase to latest qom-cpu (commit 90c5d39c) Cc: Igor Mammedov <imamm...@redhat.com> Cc: Andreas Färber <afaer...@suse.de> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Aurelien Jarno <aurel...@aurel32.net> Cc: Richard Henderson <r...@twiddle.net> Cc: Marcelo Tosatti <mtosa...@redhat.com> Eduardo Habkost (11): target-i386: Simplify reporting of unavailable features target-i386: Merge feature filtering/checking functions target-i386: Pass FeatureWord argument to report_unavailable_features() target-i386: Isolate KVM-specific code on CPU feature filtering logic target-i386: Make TCG feature filtering more readable target-i386: Filter FEAT_7_0_EBX TCG features too target-i386: Filter KVM and 0xC0000001 features on TCG target-i386: Define TCG_*_FEATURES earlier on cpu.c target-i386: Loop-based feature word filtering in TCG mode target-i386: Support check/enforce flags in TCG mode, too target-i386: Support "-cpu host" in TCG mode Marcelo Tosatti (1): target-i386: support "invariant tsc" flag target-i386/cpu.c | 274 +++++++++++++++++++++++++++++++----------------------- target-i386/cpu.h | 1 + 2 files changed, 157 insertions(+), 118 deletions(-) -- 1.9.0