diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-01-21 18:16:49 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-01-22 10:45:27 +0100 |
commit | 527c89cd32f8522859f58343be3d3dc8f754b783 (patch) | |
tree | dd24593b79512e853a05240c33e2f3418813c7f6 /sysdeps/powerpc/powerpc64 | |
parent | 7a5ab88e218d2091e876a9779a4acae426afb85c (diff) | |
download | glibc-527c89cd32f8522859f58343be3d3dc8f754b783.tar glibc-527c89cd32f8522859f58343be3d3dc8f754b783.tar.gz glibc-527c89cd32f8522859f58343be3d3dc8f754b783.tar.bz2 glibc-527c89cd32f8522859f58343be3d3dc8f754b783.zip |
powerpc64: Select POWER9 machine for the scv instruction
It is not available with the baseline ISA.
Fixes commit 68ab82f56690ada86ac1e0c46bad06ba189a10ef
("powerpc: Runtime selection between sc and scv for syscalls").
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-rw-r--r-- | sysdeps/powerpc/powerpc64/sysdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/sysdep.h b/sysdeps/powerpc/powerpc64/sysdep.h index cea05c8e17..c57bb1c05d 100644 --- a/sysdeps/powerpc/powerpc64/sysdep.h +++ b/sysdeps/powerpc/powerpc64/sysdep.h @@ -333,7 +333,10 @@ LT_LABELSUFFIX(name,_name_end): ; \ mflr r9; \ std r9,FRAME_LR_SAVE(r1); \ cfi_offset(lr,FRAME_LR_SAVE); \ + .machine "push"; \ + .machine "power9"; \ scv 0; \ + .machine "pop"; \ ld r9,FRAME_LR_SAVE(r1); \ mtlr r9; \ cfi_restore(lr); |