Add some more WASI stubs

This commit is contained in:
Chris Fallin 2023-02-23 20:53:22 -08:00
parent 0f42e16446
commit 8600c1f472

View file

@ -70,6 +70,11 @@ pub fn call_wasi(
write_u32(mem, p_time, 0); write_u32(mem, p_time, 0);
Some(smallvec![ConstVal::I32(0)]) Some(smallvec![ConstVal::I32(0)])
} }
"clock_res_get" => {
let p_res = args[1].as_u32().unwrap();
write_u32(mem, p_res, 1);
Some(smallvec![ConstVal::I32(0)])
}
_ => None, _ => None,
} }
} }