From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] x86 emulation: fix bswap Date: Thu, 15 Feb 2007 11:37:05 +0000 Message-ID: <45D453F1.76E4.0078.0@novell.com> References: <45D4427E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline 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 >>> Keir Fraser 15.02.07 11:33 >>> >On 15/2/07 10:22, "Jan Beulich" wrote: > >> REX.R needs to be decoded and since bswap on a 16-bit operand is undefined, >> it is best to have hardware execute this so the emulation result matches >> hardware behavior. Since it is simple to do, faster, and smaller, also let >> hardware do 32- and 64-bit ones. > >Can 'undefined' behaviour include e.g. #UD? I don't think so. Jan