Ard Biesheuvel a89888648e ARM: 9197/1: spectre-bhb: fix loop8 sequence for Thumb2
[ Upstream commit 3cfb3019979666bdf33a1010147363cf05e0f17b ]

In Thumb2, 'b . + 4' produces a branch instruction that uses a narrow
encoding, and so it does not jump to the following instruction as
expected. So use W(b) instead.

Fixes: 6c7cb60bff7a ("ARM: fix Thumb2 regression with Spectre BHB")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-25 09:17:59 +02:00
..
2022-03-11 12:11:50 +01:00
2020-09-17 16:37:28 +01:00
2022-03-08 19:09:36 +01:00
2020-02-11 12:56:27 +01:00
2020-07-27 14:31:09 -04:00
2020-06-09 09:39:10 -07:00