mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target/arm: add new property to select pauth-qarma5
Before changing default pauth algorithm, we need to make sure current default one (QARMA5) can still be selected. $ qemu-system-aarch64 -cpu max,pauth-qarma5=on ... Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241219183211.3493974-2-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
538b764d34
commit
86a00f2046
5 changed files with 31 additions and 12 deletions
|
@ -419,21 +419,28 @@ static void pauth_tests_default(QTestState *qts, const char *cpu_type)
|
|||
assert_has_feature_enabled(qts, cpu_type, "pauth");
|
||||
assert_has_feature_disabled(qts, cpu_type, "pauth-impdef");
|
||||
assert_has_feature_disabled(qts, cpu_type, "pauth-qarma3");
|
||||
assert_has_feature_disabled(qts, cpu_type, "pauth-qarma5");
|
||||
assert_set_feature(qts, cpu_type, "pauth", false);
|
||||
assert_set_feature(qts, cpu_type, "pauth", true);
|
||||
assert_set_feature(qts, cpu_type, "pauth-impdef", true);
|
||||
assert_set_feature(qts, cpu_type, "pauth-impdef", false);
|
||||
assert_set_feature(qts, cpu_type, "pauth-qarma3", true);
|
||||
assert_set_feature(qts, cpu_type, "pauth-qarma3", false);
|
||||
assert_set_feature(qts, cpu_type, "pauth-qarma5", true);
|
||||
assert_set_feature(qts, cpu_type, "pauth-qarma5", false);
|
||||
assert_error(qts, cpu_type,
|
||||
"cannot enable pauth-impdef or pauth-qarma3 without pauth",
|
||||
"cannot enable pauth-impdef, pauth-qarma3 or pauth-qarma5 without pauth",
|
||||
"{ 'pauth': false, 'pauth-impdef': true }");
|
||||
assert_error(qts, cpu_type,
|
||||
"cannot enable pauth-impdef or pauth-qarma3 without pauth",
|
||||
"cannot enable pauth-impdef, pauth-qarma3 or pauth-qarma5 without pauth",
|
||||
"{ 'pauth': false, 'pauth-qarma3': true }");
|
||||
assert_error(qts, cpu_type,
|
||||
"cannot enable both pauth-impdef and pauth-qarma3",
|
||||
"{ 'pauth': true, 'pauth-impdef': true, 'pauth-qarma3': true }");
|
||||
"cannot enable pauth-impdef, pauth-qarma3 or pauth-qarma5 without pauth",
|
||||
"{ 'pauth': false, 'pauth-qarma5': true }");
|
||||
assert_error(qts, cpu_type,
|
||||
"cannot enable pauth-impdef, pauth-qarma3 and pauth-qarma5 at the same time",
|
||||
"{ 'pauth': true, 'pauth-impdef': true, 'pauth-qarma3': true,"
|
||||
" 'pauth-qarma5': true }");
|
||||
}
|
||||
|
||||
static void test_query_cpu_model_expansion(const void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue