diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-11 18:31:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-11 18:31:59 +0200 |
| commit | 76903904d07afc332ac98c863d494eff353e1e5d (patch) | |
| tree | 2965f6175befb434a15376e55f5b87b27fa098e4 /src/wrapped/generated/wrapper.c | |
| parent | ae221ed5bd1e530ff7f90af30b633bb21801e42b (diff) | |
| parent | a42f232b1efb155a0aebbf6b882e97ce7e516a3b (diff) | |
| download | box64-76903904d07afc332ac98c863d494eff353e1e5d.tar.gz box64-76903904d07afc332ac98c863d494eff353e1e5d.zip | |
Merge pull request #6 from rajdakin/generalImprovements
General improvements to box64 and fixed some SDL2 functions
Diffstat (limited to 'src/wrapped/generated/wrapper.c')
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index e6244933..32952925 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -1,6 +1,6 @@ -/***************************************************************** - * File automatically generated by rebuild_wrappers.py (v1.2.0.09) - *****************************************************************/ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v1.3.0.10) * + *******************************************************************/ #include <stdio.h> #include <stdlib.h> #include <stdint.h> @@ -31,7 +31,7 @@ static void* io_convert(void* v) #define ST0val ST0.d int of_convert(int); -typedef int64_t (*iF_t)(); + typedef void (*vFE_t)(x64emu_t*); typedef void (*vFv_t)(void); typedef void (*vFi_t)(int64_t); @@ -135,7 +135,6 @@ typedef int64_t (*iFIi_t)(int64_t, int64_t); typedef int64_t (*iFui_t)(uint64_t, int64_t); typedef int64_t (*iFuu_t)(uint64_t, uint64_t); typedef int64_t (*iFup_t)(uint64_t, void*); -typedef int64_t (*iFUU_t)(uint64_t, uint64_t); typedef int64_t (*iFli_t)(intptr_t, int64_t); typedef int64_t (*iFLL_t)(uintptr_t, uintptr_t); typedef int64_t (*iFLp_t)(uintptr_t, void*); @@ -267,6 +266,7 @@ typedef int64_t (*iFEiw_t)(x64emu_t*, int64_t, int16_t); typedef int64_t (*iFEip_t)(x64emu_t*, int64_t, void*); typedef int64_t (*iFEWW_t)(x64emu_t*, uint16_t, uint16_t); typedef int64_t (*iFEup_t)(x64emu_t*, uint64_t, void*); +typedef int64_t (*iFEUU_t)(x64emu_t*, uint64_t, uint64_t); typedef int64_t (*iFEpi_t)(x64emu_t*, void*, int64_t); typedef int64_t (*iFEpL_t)(x64emu_t*, void*, uintptr_t); typedef int64_t (*iFEpp_t)(x64emu_t*, void*, void*); @@ -1229,7 +1229,6 @@ typedef double (*KFKK_t)(double, double); typedef double (*KFKp_t)(double, void*); #endif -void iF(x64emu_t *emu, uintptr_t fcn) { iF_t fn = (iF_t)fcn; R_RAX=(int64_t)fn(); } void vFE(x64emu_t *emu, uintptr_t fcn) { vFE_t fn = (vFE_t)fcn; fn(emu); } void vFv(x64emu_t *emu, uintptr_t fcn) { vFv_t fn = (vFv_t)fcn; fn(); } void vFi(x64emu_t *emu, uintptr_t fcn) { vFi_t fn = (vFi_t)fcn; fn((int64_t)R_RDI); } @@ -1333,7 +1332,6 @@ void iFIi(x64emu_t *emu, uintptr_t fcn) { iFIi_t fn = (iFIi_t)fcn; R_RAX=(int64_ void iFui(x64emu_t *emu, uintptr_t fcn) { iFui_t fn = (iFui_t)fcn; R_RAX=(int64_t)fn((uint64_t)R_RDI, (int64_t)R_RSI); } void iFuu(x64emu_t *emu, uintptr_t fcn) { iFuu_t fn = (iFuu_t)fcn; R_RAX=(int64_t)fn((uint64_t)R_RDI, (uint64_t)R_RSI); } void iFup(x64emu_t *emu, uintptr_t fcn) { iFup_t fn = (iFup_t)fcn; R_RAX=(int64_t)fn((uint64_t)R_RDI, (void*)R_RSI); } -void iFUU(x64emu_t *emu, uintptr_t fcn) { iFUU_t fn = (iFUU_t)fcn; R_RAX=(int64_t)fn((uint64_t)R_RDI, (uint64_t)R_RSI); } void iFli(x64emu_t *emu, uintptr_t fcn) { iFli_t fn = (iFli_t)fcn; R_RAX=(int64_t)fn((intptr_t)R_RDI, (int64_t)R_RSI); } void iFLL(x64emu_t *emu, uintptr_t fcn) { iFLL_t fn = (iFLL_t)fcn; R_RAX=(int64_t)fn((uintptr_t)R_RDI, (uintptr_t)R_RSI); } void iFLp(x64emu_t *emu, uintptr_t fcn) { iFLp_t fn = (iFLp_t)fcn; R_RAX=(int64_t)fn((uintptr_t)R_RDI, (void*)R_RSI); } @@ -1465,6 +1463,7 @@ void iFEiw(x64emu_t *emu, uintptr_t fcn) { iFEiw_t fn = (iFEiw_t)fcn; R_RAX=(int void iFEip(x64emu_t *emu, uintptr_t fcn) { iFEip_t fn = (iFEip_t)fcn; R_RAX=(int64_t)fn(emu, (int64_t)R_RDI, (void*)R_RSI); } void iFEWW(x64emu_t *emu, uintptr_t fcn) { iFEWW_t fn = (iFEWW_t)fcn; R_RAX=(int64_t)fn(emu, (uint16_t)R_RDI, (uint16_t)R_RSI); } void iFEup(x64emu_t *emu, uintptr_t fcn) { iFEup_t fn = (iFEup_t)fcn; R_RAX=(int64_t)fn(emu, (uint64_t)R_RDI, (void*)R_RSI); } +void iFEUU(x64emu_t *emu, uintptr_t fcn) { iFEUU_t fn = (iFEUU_t)fcn; R_RAX=(int64_t)fn(emu, (uint64_t)R_RDI, (uint64_t)R_RSI); } void iFEpi(x64emu_t *emu, uintptr_t fcn) { iFEpi_t fn = (iFEpi_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (int64_t)R_RSI); } void iFEpL(x64emu_t *emu, uintptr_t fcn) { iFEpL_t fn = (iFEpL_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (uintptr_t)R_RSI); } void iFEpp(x64emu_t *emu, uintptr_t fcn) { iFEpp_t fn = (iFEpp_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (void*)R_RSI); } @@ -2427,6 +2426,7 @@ void KFKK(x64emu_t *emu, uintptr_t fcn) { KFKK_t fn = (KFKK_t)fcn; double db=fn( void KFKp(x64emu_t *emu, uintptr_t fcn) { KFKp_t fn = (KFKp_t)fcn; double db=fn(FromLD((void*)(R_RSP + 8)), (void*)R_RDI); fpu_do_push(emu); ST0val = db; } #endif +void vFEv(x64emu_t *emu, uintptr_t fcn) { vFE_t fn = (vFE_t)fcn; fn(emu); } void lFEv(x64emu_t *emu, uintptr_t fcn) { lFE_t fn = (lFE_t)fcn; R_RAX=(intptr_t)fn(emu); } void LFEv(x64emu_t *emu, uintptr_t fcn) { LFE_t fn = (LFE_t)fcn; R_RAX=(uintptr_t)fn(emu); } void pFEv(x64emu_t *emu, uintptr_t fcn) { pFE_t fn = (pFE_t)fcn; R_RAX=(uintptr_t)fn(emu); } @@ -2438,7 +2438,6 @@ void iFEpLvvpp(x64emu_t *emu, uintptr_t fcn) { iFEpLpp_t fn = (iFEpLpp_t)fcn; R_ void iFEpuvvppp(x64emu_t *emu, uintptr_t fcn) { iFEpuppp_t fn = (iFEpuppp_t)fcn; R_RAX=(int64_t)fn(emu, (void*)R_RDI, (uint64_t)R_RSI, (void*)R_R8, (void*)R_R9, *(void**)(R_RSP + 8)); } int isSimpleWrapper(wrapper_t fun) { - if (fun == &iF) return 1; if (fun == &vFv) return 1; if (fun == &vFi) return 1; if (fun == &vFu) return 1; @@ -2527,7 +2526,6 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &iFui) return 1; if (fun == &iFuu) return 1; if (fun == &iFup) return 1; - if (fun == &iFUU) return 1; if (fun == &iFli) return 1; if (fun == &iFLL) return 1; if (fun == &iFLp) return 1; |