Intel encodings for trap.

Use a ud2 instruction which generates an undefined instruction
exception.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-19 15:01:32 -07:00
parent b59b348a1e
commit 87c5f27ff7
5 changed files with 19 additions and 3 deletions

View File

@@ -175,6 +175,12 @@ I64.enc(base.brnz.i64, *r.tjccb.rex(0x75, w=1))
I64.enc(base.brnz.i32, *r.tjccb.rex(0x75))
I64.enc(base.brnz.i32, *r.tjccb(0x75))
#
# Trap as ud2
#
I32.enc(base.trap, *r.noop(0x0f, 0x0b))
I64.enc(base.trap, *r.noop(0x0f, 0x0b))
#
# Comparisons
#