From 8600c1f472951a2addfb68c7a147efbd80ffeccb Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Thu, 23 Feb 2023 20:53:22 -0800 Subject: [PATCH] Add some more WASI stubs --- src/interp/wasi.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/interp/wasi.rs b/src/interp/wasi.rs index 43dc4ac..749de8e 100644 --- a/src/interp/wasi.rs +++ b/src/interp/wasi.rs @@ -70,6 +70,11 @@ pub fn call_wasi( write_u32(mem, p_time, 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, } }