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

[Xen-devel] Question about alignment check in sh_x86_emulate_write

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Question about alignment check in sh_x86_emulate_write
From: "Su, Disheng" <disheng.su@xxxxxxxxx>
Date: Tue, 4 Dec 2007 20:38:01 +0800
Delivery-date: Tue, 04 Dec 2007 04:38:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg2coIjMoIxZjmzTN2D1Cu56aeTEQ==
Thread-topic: Question about alignment check in sh_x86_emulate_write
In in sh_x86_emulate_write:
        if ( vaddr & (bytes-1) )
                return X86EMUL_UNHANDLE;
I met a problem the vaddr is not aligned on word or dword, but have to
emulate it. 
I am wordering about the reason for this check. Is it safe to get rid of
it?

Best Regards,
Disheng, Su

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