diff options
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/common.h | 2 | ||||
-rw-r--r-- | riscv/disasm.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/riscv/common.h b/riscv/common.h index 8ddd984..3c523d0 100644 --- a/riscv/common.h +++ b/riscv/common.h @@ -6,4 +6,6 @@ #define likely(x) __builtin_expect(x, 1) #define unlikely(x) __builtin_expect(x, 0) +#define NOINLINE __attribute__ ((noinline)) + #endif diff --git a/riscv/disasm.h b/riscv/disasm.h index e465fca..88d0e9b 100644 --- a/riscv/disasm.h +++ b/riscv/disasm.h @@ -30,8 +30,8 @@ struct : public arg_t { class disasm_insn_t { public: - disasm_insn_t(const char* name, uint32_t match, uint32_t mask, - const std::vector<const arg_t*>& args) + NOINLINE disasm_insn_t(const char* name, uint32_t match, uint32_t mask, + const std::vector<const arg_t*>& args) : match(match), mask(mask), args(args), name(strdup(name)) {} ~disasm_insn_t() { free(const_cast<char *>(name)); } |