]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/decodecode: set ARCH when running natively on arm/arm64
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 28 Dec 2018 08:31:21 +0000 (00:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Dec 2018 20:11:44 +0000 (12:11 -0800)
commit9e0ccf2b5ae5933505c11627a59e0d4f53701b55
tree88ffea587b776ca827873893d62dd2627e78007d
parent9ec9fc57fff7772d3c19ead85e33b5d39739298c
scripts/decodecode: set ARCH when running natively on arm/arm64

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.

Link: http://lkml.kernel.org/r/20181210174659.31054-2-marc.zyngier@arm.com
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/decodecode