tools: kwboot: Replace ARM mov + movt instruction pair by mov + orr
authorPali Rohár <pali@kernel.org>
Wed, 27 Oct 2021 18:57:01 +0000 (20:57 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
commit558176dcb14d589b5854bea0988301e27b60091d
treefec67dbeca2601a69e30332161034b6b18292a8a
parent56452295c315397255d05e91940976f68c247d4a
tools: kwboot: Replace ARM mov + movt instruction pair by mov + orr

Older Armada SoCs have custom ARMv5te compatible core which does not
support movt instruction. So replace mov + movt instruction pair used for
immediate move construction by mov + orr instructions which are supported
also by ARMv5te.

After this change kwboot ARM code should be compatible with any 32-bit ARM
core compatible by ARMv2 or new. At least GNU AS does not throw any error
or warning.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c