Skip to content

Commit

Permalink
MDEV-33447 fixup for POWER
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Apr 23, 2024
1 parent 0271517 commit f0d0ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/sync/cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const pmem_control pmem;
#else
void pmem_persist(const void *buf, size_t size)
{
# ifdef __PPC__
# ifdef __powerpc64__
for (uintptr_t u= uintptr_t(buf) & ~(CPU_LEVEL1_DCACHE_LINESIZE),
end= uintptr_t(buf) + size;
u < end; u+= CPU_LEVEL1_DCACHE_LINESIZE)
Expand All @@ -115,7 +115,7 @@ void pmem_persist(const void *buf, size_t size)
Let us hope that having a recent enough GCC is an adequate proxy
for having a recent enough assembler. */
# if __GNUC__ >= 11 || (defined __clang_major__ && __clang_major__ >= 12)
__asm__ __volatile__("dcbstps 0,%0" :: r(u) : "memory");
__asm__ __volatile__("dcbstps 0,%0" :: "r"(u) : "memory");
# else
__asm__ __volatile__(".long (0x7cc000AC | %0 << 11)" :: "r"(u) : "memory");
# endif
Expand Down

0 comments on commit f0d0ddc

Please sign in to comment.