From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHAN-0004qx-0j for qemu-devel@nongnu.org; Tue, 13 May 2014 14:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkHAG-0002kp-SG for qemu-devel@nongnu.org; Tue, 13 May 2014 14:11:02 -0400 Received: from chello080108087023.7.11.vie.surfer.at ([80.108.87.23]:52211 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHAG-0001yU-BG for qemu-devel@nongnu.org; Tue, 13 May 2014 14:10:56 -0400 Message-ID: <53725FA9.6050607@wiesinger.com> Date: Tue, 13 May 2014 20:08:41 +0200 From: Gerhard Wiesinger MIME-Version: 1.0 References: <20140509150621.GA9474@euler.fritz.box> <20140510150739.GA29484@morn.localdomain> <536F6241.2060806@bwalle.de> <20140511123720.GA20468@morn.localdomain> <705f2182cbc05c35147afbe7c06c62a6@bwalle.de> <20140512052918.GA2100@morn.localdomain> <20140512200731.GA15678@morn.localdomain> <20140513055244.GA32132@euler.fritz.box> <8c29ddc5f82d7003c36d71eb98d8ddcf@bwalle.de> <20140513154115.GA12093@morn.localdomain> In-Reply-To: <20140513154115.GA12093@morn.localdomain> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] uvesafb doesn't work with seabios List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor , Bernhard Walle Cc: qemu-devel@nongnu.org, kraxel@redhat.com On 13.05.2014 17:41, Kevin O'Connor wrote: > The x86emu code does not properly emulate "leal" (as near as I can > tell it treats it as a "leaw" instead), which leads to all sorts of > bizarre behavior when it tries to interpret the code. This type of > issue has occurred for a bunch of instructions (on both x86emu and on > an emulator Windows uses) and we've worked around it in SeaVGABIOS > with a combination of gcc compiler flags and by post processing gcc's > assembler to remove some troublesome instructions. Unfortunately, I > don't know of any way to convince gcc to not emit the "leal" > instruction and the instruction appears too complex to readily patch > out of the assembler. Can't that wrong behaviour of "leal" instruction be fixed in qemu? Ciao, Gerhard