Received: from eggs.gnu.org ([2001:4830:134:3::10]:56041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG2pO-0004lM-9p for qemu-devel@nongnu.org; Wed, 31 May 2017 08:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG2pK-0000pA-At for qemu-devel@nongnu.org; Wed, 31 May 2017 08:34:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48712) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dG2pK-0000oJ-4D for qemu-devel@nongnu.org; Wed, 31 May 2017 08:34:14 -0400 References: <1c8f4f4e-65f7-2d12-a391-08781fea651c@landley.net> <20170529101413.GN16511@redhat.com> <7e4d7d67-3312-2d2a-ab64-8c0f171d9118@landley.net> From: Paolo Bonzini Message-ID: <074f4da1-85de-ddd9-f426-ffb0ed563449@redhat.com> Date: Wed, 31 May 2017 14:34:08 +0200 MIME-Version: 1.0 In-Reply-To: <7e4d7d67-3312-2d2a-ab64-8c0f171d9118@landley.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Commit b2a575a1c652 broke i486 support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley , "Richard W.M. Jones" , Thomas Huth Cc: qemu-devel@nongnu.org, =?UTF-8?Q?Marc_Mar=c3=ad?= On 30/05/2017 21:05, Rob Landley wrote: > On 05/29/2017 05:14 AM, Richard W.M. Jones wrote: >> I see in the disassembly use of cmovne (new in Pentium Pro) and >> bswap (new in 486). >> [http://cse.unl.edu/~goddard/Courses/CSCE351/IntelArchitecture/InstructionSetSummary.pdf] >> >> The cmovne instruction is generated by the compiler (GCC in my case), >> >> The following patch removes the cmovne instruction, so it should work >> on 486 (although I didn't test it). It's not possible to remove bswap >> without surgery on the inline assembler. > > Is there any way to make it just _not_ load the option rom for -cpu 486? > It ran fine before that thing went in... You were loading another option ROM. Thomas's suggested -global invocation will revert to that ROM until we fix it. Paolo