[PATCH] x86: Clear modrm if not needed

Borislav Petkov bp@suse.de
Mon Oct 5 08:29:20 GMT 2020


On Sun, Oct 04, 2020 at 04:18:24PM -0700, H.J. Lu wrote:
> I am testing this patch.
> 
> -- 
> H.J.

> From 9c85297a6bf95ce555f9a607b39bfcdf4c21f380 Mon Sep 17 00:00:00 2001
> From: "H.J. Lu" <hjl.tools@gmail.com>
> Date: Sun, 4 Oct 2020 16:06:26 -0700
> Subject: [PATCH] x86: Clear modrm if not needed
> 
> The MODRM byte can be checked to display the instruction name only if the
> MODRM byte needed.  Clear modrm if the MODRM byte isn't needed so that
> modrm field checks in putop like, modrm.mod == N with N != 0, can be done
> without checking need_modrm.

This looks like the better solution.

Thx.

-- 
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg


More information about the Binutils mailing list