From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH] x86: emulate lea with two register operands correctly Date: Thu, 5 Jan 2012 16:17:13 +0000 Message-ID: <4F05CD09.4020503@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 05/01/12 15:49, Keir Fraser wrote: > On 05/01/2012 15:03, "David Vrabel" wrote: > >> An lea instruction with two register operands should raise an >> undefined instruction exception. >> >> Skype does such a instruction and will crash when starting if it does >> not get the exception. > > Thanks. I think it is a little nicer to check ea.type != OP_MEM, so I made > that change before committing this patch. It's now in xen-unstable staging. That works for me, thanks. I also think this patch should be a 4.1 candidate. David