From 0f15032210255e0b7ca3d78b3a0c7d9dfb184c88 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Wed, 14 Aug 2024 15:25:06 +0200 Subject: [PATCH] removes gen_wait as wait can be called like any other extern function --- gen_input/templates/asmjit/CORENAME.cpp.gtl | 1 - src/vm/asmjit/vm_tgc5c.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gen_input/templates/asmjit/CORENAME.cpp.gtl b/gen_input/templates/asmjit/CORENAME.cpp.gtl index 47b07ca..7efab21 100644 --- a/gen_input/templates/asmjit/CORENAME.cpp.gtl +++ b/gen_input/templates/asmjit/CORENAME.cpp.gtl @@ -90,7 +90,6 @@ protected: using super::write_reg_to_mem; using super::gen_read_mem; using super::gen_write_mem; - using super::gen_wait; using super::gen_leave; using super::gen_sync; diff --git a/src/vm/asmjit/vm_tgc5c.cpp b/src/vm/asmjit/vm_tgc5c.cpp index deb5004..19e10a6 100644 --- a/src/vm/asmjit/vm_tgc5c.cpp +++ b/src/vm/asmjit/vm_tgc5c.cpp @@ -88,7 +88,6 @@ protected: using super::write_reg_to_mem; using super::gen_read_mem; using super::gen_write_mem; - using super::gen_wait; using super::gen_leave; using super::gen_sync; @@ -2512,7 +2511,10 @@ private: gen_instr_prologue(jh); cc.comment("//behavior:"); /*generate behavior*/ - gen_wait(jh, 1); + InvokeNode* call_wait; + jh.cc.comment("//call_wait"); + jh.cc.invoke(&call_wait, &wait, FuncSignature::build()); + setArg(call_wait, 0, 1); auto returnValue = CONT; gen_sync(jh, POST_SYNC, 41);