On 09/12/16 15:22, Jan Beulich wrote:
> Move the looking at EFLAGS.DF into the macro, rendering all call sites
> more readable.
>
> Signed-off-by: Jan Beulich <jbeul...@suse.com>

The net change is ok; it is certainly cleaner to read in the body of
x86_emulate().

However, the naming of register_address_increment() was previously ok,
as it was obvious at the calling point that a negative increment was
possible.  This subtly is now hidden.

How about reg_addr_adjust() or reg_addr_adjust_dir() as an alternative
name?  This retains the property that it is obvious that the direction
flag is followed in the calculation.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to