syscall fixes

This commit is contained in:
2026-03-24 13:40:43 +00:00
parent af755a1241
commit 9d9d2404a1
2 changed files with 3 additions and 1 deletions
@@ -178,6 +178,7 @@ pub mod caps {
pub const LOG: CapFlags = 1 << 5;
pub const ASSET: CapFlags = 1 << 6;
pub const BANK: CapFlags = 1 << 7;
pub const ALL: CapFlags = SYSTEM | GFX | INPUT | AUDIO | FS | LOG | ASSET | BANK;
}
/// Determinism flags for a syscall.
@@ -14,6 +14,7 @@ use prometeu_bytecode::{
TRAP_STACK_UNDERFLOW, TRAP_TYPE, TrapInfo,
};
use prometeu_bytecode::HeapRef;
use prometeu_hal::syscalls::caps::ALL;
use prometeu_hal::vm_fault::VmFault;
/// Reason why the Virtual Machine stopped execution during a specific run.
@@ -164,7 +165,7 @@ impl VirtualMachine {
breakpoints: std::collections::HashSet::new(),
gc_alloc_threshold: 1024, // conservative default; tests may override
last_gc_live_count: 0,
capabilities: 0,
capabilities: ALL,
yield_requested: false,
sleep_requested_until: None,
current_tick: 0,