Received: from eggs.gnu.org ([208.118.235.92]:41266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVRaN-0002Yn-5h for qemu-devel@nongnu.org; Thu, 25 Apr 2013 15:12:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVRaI-0003C0-Cj for qemu-devel@nongnu.org; Thu, 25 Apr 2013 15:12:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVRaI-0003Bj-3K for qemu-devel@nongnu.org; Thu, 25 Apr 2013 15:11:58 -0400 Date: Thu, 25 Apr 2013 16:11:55 -0300 From: Eduardo Habkost Message-ID: <20130425191155.GT2900@otherpad.lan.raisama.net> References: <1366915386-14728-1-git-send-email-ehabkost@redhat.com> <1366915386-14728-7-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366915386-14728-7-git-send-email-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [RFC 6/7] target-i386: change CPUID model of 486 to 8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , Andreas =?iso-8859-1?Q?F=E4rber?= , "H. Peter Anvin" CCing H. Peter Anvin. (Sorry, I thought git-send-email was configured to CC everybody mentioned in the SoB lines). On Thu, Apr 25, 2013 at 03:43:05PM -0300, Eduardo Habkost wrote: > This changes the model number of 486 to 8 (DX4) which matches the > feature set presented, and actually has the CPUID instruction. > > This adds compatibility calls to the pc-1.4 init function, to keep > model=0 on pc-1.4 and older. > > Signed-off-by: H. Peter Anvin > Signed-off-by: Eduardo Habkost > --- > This patch contains a chunk from a larger patch, sent by H. Peter Anvin > at: > Message-Id: <1362017554-1260-1-git-send-email-hpa@zytor.com> > http://marc.info/?l=qemu-devel&m=136202143002609 > > I hope I'm doing the right thing by keeping hpa's signed-off-by line. > --- > hw/i386/pc_piix.c | 1 + > hw/i386/pc_q35.c | 1 + > target-i386/cpu.c | 2 +- > 3 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c > index 615d8f4..9372f77 100644 > --- a/hw/i386/pc_piix.c > +++ b/hw/i386/pc_piix.c > @@ -238,6 +238,7 @@ static void pc_init_pci(QEMUMachineInitArgs *args) > static void pc_init_pci_1_4(QEMUMachineInitArgs *args) > { > x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); > + x86_cpu_compat_set_model("486", 0); > pc_init_pci(args); > } > > diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c > index 3240203..fc566fd 100644 > --- a/hw/i386/pc_q35.c > +++ b/hw/i386/pc_q35.c > @@ -212,6 +212,7 @@ static void pc_q35_init(QEMUMachineInitArgs *args) > static void pc_q35_init_1_4(QEMUMachineInitArgs *args) > { > x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE); > + x86_cpu_compat_set_model("486", 0); > pc_q35_init(args); > } > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 592fed8..4fc7527 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -587,7 +587,7 @@ static x86_def_t builtin_x86_defs[] = { > .level = 1, > .vendor = CPUID_VENDOR_INTEL, > .family = 4, > - .model = 0, > + .model = 8, > .stepping = 0, > .features[FEAT_1_EDX] = > I486_FEATURES, > -- > 1.8.1.4 > -- Eduardo