aboutsummaryrefslogtreecommitdiff
path: root/riscv/insn_macros.h
blob: 8ec8f763e81c97f5a575093ac2049beea2fd08db (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) (unlikely(!(x)) ? throw trap_illegal_instruction(insn.bits()) : (void) 0)

#endif