diff options
author | John M. Schanck <jschanck@mozilla.com> | 2022-06-06 17:07:36 +0000 |
---|---|---|
committer | John M. Schanck <jschanck@mozilla.com> | 2022-06-06 17:07:36 +0000 |
commit | 5030790867519771aeef88e77ceafda89cea5fbc (patch) | |
tree | 315550a08d0681c9a526e1a3da8e77de862e6c5f | |
parent | 28138a5c0eb37dd25ab7ea9f4278c7d582845293 (diff) | |
download | nss-hg-5030790867519771aeef88e77ceafda89cea5fbc.tar.gz |
Bug 1769063 - replace ppc64 dcbzl intrinisic. r=nss-reviewers,bbeurdouche
Differential Revision: https://phabricator.services.mozilla.com/D148326
-rw-r--r-- | lib/freebl/mpi/mpcpucache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/freebl/mpi/mpcpucache.c b/lib/freebl/mpi/mpcpucache.c index f09ff3446..ddc21ec1c 100644 --- a/lib/freebl/mpi/mpcpucache.c +++ b/lib/freebl/mpi/mpcpucache.c @@ -727,10 +727,10 @@ s_mpi_getProcessorLineSize() static inline void dcbzl(char *array) { - register char *a asm("r2") = array; - __asm__ __volatile__("dcbzl %0,0" - : "=r"(a) - : "0"(a)); + __asm__("dcbzl %0, %1" + : /*no result*/ + : "b%"(array), "r"(0) + : "memory"); } #define PPC_DO_ALIGN(x, y) ((char *)((((long long)(x)) + ((y)-1)) & ~((y)-1))) |