]> git.ipfire.org Git - thirdparty/openssl.git/commit
LoongArch64 assembly pack: Really implement OPENSSL_rdtsc
authorXi Ruoyao <xry111@xry111.site>
Sun, 26 Nov 2023 11:49:48 +0000 (19:49 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Dec 2023 17:34:34 +0000 (18:34 +0100)
commita607546e6e4e2f96df707324fe892342594cd7ff
tree413ac8771ccc411fa1dbb036343152d483615bd6
parenta8df5651153e8e81fbaa8408dd1137232168997d
LoongArch64 assembly pack: Really implement OPENSSL_rdtsc

LoongArch [rdtimel.w][1] instruction reads the low 32 bits of the
64-bit stable counter, implement OPENSSL_rdtsc with it instead of always
returning 0.

[1]:https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_rdtimelh_w_rdtime_d

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22823)
crypto/loongarch64cpuid.pl