From: Andrew Cooper Subject: Re: [PATCH 2/3] x86emul: don't open code EFLAGS handling for 2-operand IMUL Date: Tue, 16 Aug 2016 15:20:35 +0100 Message-ID: References: <57B2F93802000078001063E6@prv-mh.provo.novell.com> <57B2FA100200007800106401@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2910699025744866203==" Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZfEO-0004Az-H5 for xen-devel@lists.xenproject.org; Tue, 16 Aug 2016 14:20:40 +0000 In-Reply-To: <57B2FA100200007800106401@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org --===============2910699025744866203== Content-Type: multipart/alternative; boundary="------------7A0700E229F8AB65C7F5091D" --------------7A0700E229F8AB65C7F5091D Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On 16/08/16 10:33, Jan Beulich wrote: > Slightly extending the emulate_2op*() macro machinery makes it usable > for IMUL r,r/m too, which has the benefit of smaller source code and > the EFLAGS output being guaranteed to match actual hardware behavior. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper (I think - reviewing this just re-enforces my view of how horribly opaque this bit of the emulator is) --------------7A0700E229F8AB65C7F5091D Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit
On 16/08/16 10:33, Jan Beulich wrote:
Slightly extending the emulate_2op*() macro machinery makes it usable
for IMUL r,r/m too, which has the benefit of smaller source code and
the EFLAGS output being guaranteed to match actual hardware behavior.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>  (I think - reviewing this just re-enforces my view of how horribly opaque this bit of the emulator is)
--------------7A0700E229F8AB65C7F5091D-- --===============2910699025744866203== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============2910699025744866203==--