Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit a05e6c1

Browse files
Merge pull request #1153 from kilobyte/riscv
riscv: define cacheline size
2 parents 36bfcee + 7cd2d0e commit a05e6c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/libpmemobj++/detail/common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ namespace experimental
150150
namespace detail
151151
{
152152

153-
#if defined(__x86_64) || defined(_M_X64) || defined(__aarch64__)
153+
#if defined(__x86_64) || defined(_M_X64) || defined(__aarch64__) || \
154+
defined(__riscv)
154155
static constexpr size_t CACHELINE_SIZE = 64ULL;
155156
#elif defined(__PPC64__)
156157
static constexpr size_t CACHELINE_SIZE = 128ULL;

0 commit comments

Comments
 (0)