aboutsummaryrefslogtreecommitdiff
path: root/riscv/common.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-07-18 15:15:41 -0700
committerAndrew Waterman <andrew@sifive.com>2022-07-18 15:15:41 -0700
commitb0d9782e13156abd5884fa73017a0286441202d1 (patch)
tree154a16095707eab7ac4729b78cf50851e02b0282 /riscv/common.h
parent84b9d03c088af3a92505c82ff3160d984387248c (diff)
downloadspike-b0d9782e13156abd5884fa73017a0286441202d1.zip
spike-b0d9782e13156abd5884fa73017a0286441202d1.tar.gz
spike-b0d9782e13156abd5884fa73017a0286441202d1.tar.bz2
Fix load/store performance under clang
Hopefully for the last time :-)
Diffstat (limited to 'riscv/common.h')
-rw-r--r--riscv/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/common.h b/riscv/common.h
index 002a83f..7d37001 100644
--- a/riscv/common.h
+++ b/riscv/common.h
@@ -8,11 +8,13 @@
# define unlikely(x) __builtin_expect(x, 0)
# define NOINLINE __attribute__ ((noinline))
# define NORETURN __attribute__ ((noreturn))
+# define ALWAYS_INLINE __attribute__ ((always_inline))
#else
# define likely(x) (x)
# define unlikely(x) (x)
# define NOINLINE
# define NORETURN
+# define ALWAYS_INLINE
#endif
#endif