diff options
author | Richard Henderson | 2019-03-15 01:28:32 +0100 |
---|---|---|
committer | Richard Henderson | 2019-05-22 18:38:54 +0200 |
commit | 108b3ba891408c4dce93df78261ec4aca38c0e2e (patch) | |
tree | 6d2b4b3ea1bfd13acceb2853088ba20febea94f5 /linux-user/aarch64/cpu_loop.c | |
parent | hw/misc/exynos4210_rng: Use qemu_guest_getrandom (diff) | |
download | qemu-108b3ba891408c4dce93df78261ec4aca38c0e2e.tar.gz qemu-108b3ba891408c4dce93df78261ec4aca38c0e2e.tar.xz qemu-108b3ba891408c4dce93df78261ec4aca38c0e2e.zip |
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>
Diffstat (limited to 'linux-user/aarch64/cpu_loop.c')
-rw-r--r-- | linux-user/aarch64/cpu_loop.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/linux-user/aarch64/cpu_loop.c b/linux-user/aarch64/cpu_loop.c index cedad39ca0..2f2f63e3e8 100644 --- a/linux-user/aarch64/cpu_loop.c +++ b/linux-user/aarch64/cpu_loop.c @@ -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; |