Fixes #614: Implement a debug trap;

This commit is contained in:
Benjamin Bouvier
2018-12-05 17:30:22 +01:00
committed by Dan Gohman
parent f065b39d65
commit 93696a80bb
4 changed files with 17 additions and 0 deletions

View File

@@ -181,6 +181,10 @@ indirect_jump_table_br = Instruction(
ins=(addr, JT),
is_branch=True, is_indirect_branch=True, is_terminator=True)
debugtrap = Instruction('debugtrap', r"""
Encodes an assembly debug trap.
""", can_load=True, can_store=True, other_side_effects=True)
code = Operand('code', trapcode)
trap = Instruction(
'trap', r"""