Fixing calling into code. Interpreter can now be used.
This commit is contained in:
@@ -55,7 +55,7 @@ LibjitEmitter::LibjitEmitter(xe_memory_ref memory, jit_context_t context) {
|
||||
// TODO(benvanik): evaluate using jit_abi_fastcall
|
||||
jit_type_t fn_params[] = {
|
||||
jit_type_void_ptr,
|
||||
jit_type_uint
|
||||
jit_type_nuint,
|
||||
};
|
||||
fn_signature_ = jit_type_create_signature(
|
||||
jit_abi_cdecl,
|
||||
|
||||
@@ -79,7 +79,8 @@ int LibjitJIT::Execute(xe_ppc_state_t* ppc_state, FunctionSymbol* fn_symbol) {
|
||||
}
|
||||
|
||||
// Call into the function. This will compile it if needed.
|
||||
intptr_t args[] = {(intptr_t)ppc_state, ppc_state->lr};
|
||||
jit_nuint lr = ppc_state->lr;
|
||||
void* args[] = {&ppc_state, &lr};
|
||||
uint64_t return_value;
|
||||
int apply_result = jit_function_apply(jit_fn, (void**)&args, &return_value);
|
||||
if (!apply_result) {
|
||||
|
||||
2
third_party/libjit
vendored
2
third_party/libjit
vendored
Submodule third_party/libjit updated: f2628ca8f3...a43165d21f
Reference in New Issue
Block a user