Re: [PATCH 1/2] scripts/decodecode: Set ARCH when running natively on arm/arm64

From: Will Deacon
Date: Fri Nov 23 2018 - 13:31:19 EST


On Thu, Nov 22, 2018 at 12:14:39PM +0000, Marc Zyngier wrote:
> When running decodecode natively on arm64, ARCH is likely not to be set,
> and we end-up with .4byte instead of .inst when generating the disassembly.
>
> Similar effects would occur if running natively on a 32bit ARM platform,
> although that's even less popular.
>
> A simple workaround is to populate ARCH when it is not set and that we're
> running on an arm/arm64 system.
>
> Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx>
> ---
> scripts/decodecode | 7 +++++++
> 1 file changed, 7 insertions(+)

Acked-by: Will Deacon <will.deacon@xxxxxxx>

Will