OSDN Git Service

target/arm: Improve IMPDEF algorithm for IRG
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jul 2020 15:12:11 +0000 (16:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Jul 2020 15:12:11 +0000 (16:12 +0100)
commitd4f6dda182e19afa75706936805e18397cb95f07
treef746b1fe7800e2de1bf339fd16c37656fdae7434
parent7ad01d78a9f2e80d1be41226d98f34059f7fff90
target/arm: Improve IMPDEF algorithm for IRG

When GCR_EL1.RRND==1, the choosing of the random value is IMPDEF,
and the kernel is not expected to have set RGSR_EL1.  Force a
non-zero value into SEED, so that we do not continually return
the same tag.

Reported-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200724163853.504655-4-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/mte_helper.c