aboutsummaryrefslogtreecommitdiff
path: root/riscv/insn_macros.h
blob: 2fdfcedc5d0d2db3bc04bec7ffd58dceb3b6472c (plain)
1
2
3
4
5
6
7
8
9
#ifndef _RISCV_INSN_MACROS_H
#define _RISCV_INSN_MACROS_H

// These conflict with Boost headers so can't be included from insn_template.h
#define P (*p)

#define require(x) do { if (unlikely(!(x))) throw trap_illegal_instruction(insn.bits()); } while (0)

#endif