]> birchwood-abbey.net Git - mit-scheme.git/commitdiff
microcode: Pacify clang's objection to gcc asm constraints.
authorTaylor R Campbell <campbell+mit-scheme@mumble.net>
Wed, 3 Feb 2021 06:39:27 +0000 (06:39 +0000)
committerTaylor R Campbell <campbell+mit-scheme@mumble.net>
Wed, 3 Feb 2021 07:08:30 +0000 (07:08 +0000)
(cherry picked from commit 765ac899ae52b91ce1ee97e3ccae69d408c9930e)

src/microcode/cmpintmd/aarch64.c

index d0bad8c5ef53fc4cb89361bb824b0807b02219ce..8d5fc0fd7836522b74cb62ed1fd7964a54569eec 100644 (file)
@@ -364,15 +364,17 @@ aarch64_reset_hook (void)
 }
 
 static inline void
-aarch64_cache_line_sizes (unsigned *dsize, unsigned *isize)
+aarch64_cache_line_sizes (unsigned *dsizep, unsigned *isizep)
 {
-  uint64_t ctr_el0;
+  uint64_t ctr_el0, dsize, isize;
 
   asm volatile ("\n\
     mrs %0, ctr_el0\n\
     ubfx %1, %0, #16, #4\n\
     ubfx %2, %0, #0, #4\n\
-  " : "=r"(ctr_el0), "=r"(*dsize), "=r"(*isize));
+  " : "=r"(ctr_el0), "=r"(dsize), "=r"(isize));
+  (*dsizep) = dsize;
+  (*isizep) = isize;
 }
 
 void