From 5030790867519771aeef88e77ceafda89cea5fbc Mon Sep 17 00:00:00 2001 From: "John M. Schanck" Date: Mon, 6 Jun 2022 17:07:36 +0000 Subject: Bug 1769063 - replace ppc64 dcbzl intrinisic. r=nss-reviewers,bbeurdouche Differential Revision: https://phabricator.services.mozilla.com/D148326 --- lib/freebl/mpi/mpcpucache.c | 8 ++++---- 1 file 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))) -- cgit v1.2.1