target/arm: Put all PAC keys into a structure

This allows us to use a single syscall to initialize them all.

Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2019-03-14 17:28:32 -07:00
parent e8196d2111
commit 108b3ba891
5 changed files with 32 additions and 34 deletions

View file

@ -175,11 +175,7 @@ void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
#endif
if (cpu_isar_feature(aa64_pauth, cpu)) {
qemu_guest_getrandom_nofail(&env->apia_key, sizeof(ARMPACKey));
qemu_guest_getrandom_nofail(&env->apib_key, sizeof(ARMPACKey));
qemu_guest_getrandom_nofail(&env->apda_key, sizeof(ARMPACKey));
qemu_guest_getrandom_nofail(&env->apdb_key, sizeof(ARMPACKey));
qemu_guest_getrandom_nofail(&env->apga_key, sizeof(ARMPACKey));
qemu_guest_getrandom_nofail(&env->keys, sizeof(env->keys));
}
ts->stack_base = info->start_stack;