diff options
Diffstat (limited to 'riscv/processor.h')
-rw-r--r-- | riscv/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/processor.h b/riscv/processor.h index c32f624..2d14bb3 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -29,6 +29,8 @@ struct insn_desc_t insn_bits_t mask; insn_func_t rv32; insn_func_t rv64; + + insn_func_t func(int xlen) { return xlen == 64 ? rv64 : rv32; } }; // regnum, data |