Received: from eggs.gnu.org ([208.118.235.92]:35804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiufy-0002Yo-Ud for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:21:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiufu-0003FI-SW for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:21:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiufu-0003F2-LH for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:21:10 -0500 From: Eduardo Habkost Date: Wed, 12 Dec 2012 20:22:23 -0200 Message-Id: <1355350946-28010-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] replace cpuid_*features fields with a featue word array (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Changes in v2: - Rebased on top of: Subject: [PATCH 0/2] target-i386: move CPU object creation to cpu.c (v2) - Wrote a sed script that can be used to reproduce exactly the same changes from patch 3: https://gist.github.com/4271991 Git tree for testing: git://github.com/ehabkost/qemu-hacks.git x86-cpu-feature-array.v2 https://github.com/ehabkost/qemu-hacks/tree/x86-cpu-feature-array.v2 Original description: I was planning to implement this only after we finished the rest of the work, the changes are a bit intrusive. But now it looks like the CPUID feature bits are getting into our way (e.g. the feature word array will allow us to simplify the -cpu host and -cpu check/enforce code a lot, making it easier to convert that code to use CPU subclasses), so I decided to submit it now. Eduardo Habkost (3): target-i386: add EXT2_PPRO_FEATURES #define target-i386/cpu.c: coding style fix target-i386: replace cpuid_*features fields with a feature word array hw/kvm/clock.c | 2 +- linux-user/elfload.c | 2 +- linux-user/main.c | 4 +- target-i386/cpu.c | 582 +++++++++++++++++++++++----------------------- target-i386/cpu.h | 30 +-- target-i386/helper.c | 4 +- target-i386/kvm.c | 5 +- target-i386/misc_helper.c | 14 +- target-i386/translate.c | 10 +- 9 files changed, 334 insertions(+), 319 deletions(-) -- 1.7.11.7