machinst x64: lower resumable_trap as trap;
This commit is contained in:
@@ -732,7 +732,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
|
|||||||
ctx.emit(Inst::Hlt);
|
ctx.emit(Inst::Hlt);
|
||||||
}
|
}
|
||||||
|
|
||||||
Opcode::Trap => {
|
Opcode::Trap | Opcode::ResumableTrap => {
|
||||||
let trap_info = (ctx.srcloc(insn), inst_trapcode(ctx.data(insn)).unwrap());
|
let trap_info = (ctx.srcloc(insn), inst_trapcode(ctx.data(insn)).unwrap());
|
||||||
ctx.emit(Inst::Ud2 { trap_info })
|
ctx.emit(Inst::Ud2 { trap_info })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user