mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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:
parent
e8196d2111
commit
108b3ba891
5 changed files with 32 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue