This commit is contained in:
2026-03-24 13:40:41 +00:00
parent b7e149a1ab
commit 3f50bdaa70
4 changed files with 139 additions and 66 deletions
@@ -510,6 +510,19 @@ impl OpCodeSpecExt for OpCode {
// Treated as a safepoint marker for cooperative scheduling
is_safepoint: true,
},
OpCode::Sleep => OpcodeSpec {
name: "SLEEP",
// One u32 immediate: duration_ticks
imm_bytes: 4,
pops: 0,
pushes: 0,
is_branch: false,
// Ends execution at safepoint after instruction completes
is_terminator: false,
may_trap: false,
// Considered a safepoint since it forces a frame boundary
is_safepoint: true,
},
OpCode::Syscall => OpcodeSpec {
name: "SYSCALL",
imm_bytes: 4,