WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] x86 emulation: fix bswap

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86 emulation: fix bswap
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 15 Feb 2007 11:37:05 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Feb 2007 03:35:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1F9E768.9744%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <45D4427E.76E4.0078.0@xxxxxxxxxx> <C1F9E768.9744%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> 15.02.07 11:33 >>>
>On 15/2/07 10:22, "Jan Beulich" <jbeulich@xxxxxxxxxx> 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel