From 59dd97cb72b1a4142ddd61eea36170de4ffff926 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 18 Jun 2023 10:52:28 +0200 Subject: Added some support for 32bits code (doesn't seems enough for wow64 yet) --- src/include/regs.h | 2 +- src/include/x64emu.h | 2 +- src/include/x64tls.h | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/regs.h b/src/include/regs.h index 7a4ced73..a80b393e 100755 --- a/src/include/regs.h +++ b/src/include/regs.h @@ -17,7 +17,7 @@ enum { #define _DI _RDI enum { - _CS, _DS, _SS, _ES, _FS, _GS + _ES, _CS, _SS, _DS, _FS, _GS }; diff --git a/src/include/x64emu.h b/src/include/x64emu.h index dd324add..e9ad201c 100755 --- a/src/include/x64emu.h +++ b/src/include/x64emu.h @@ -49,7 +49,7 @@ void AddCleanup(x64emu_t *emu, void *p, void* dso_handle); void AddCleanup1Arg(x64emu_t *emu, void *p, void* a, void* dso_handle); void CallCleanup(x64emu_t *emu, void* p); void CallAllCleanup(x64emu_t *emu); -void UnimpOpcode(x64emu_t* emu); +void UnimpOpcode(x64emu_t* emu, int is32bits); uint64_t ReadTSC(x64emu_t* emu); diff --git a/src/include/x64tls.h b/src/include/x64tls.h index b99e3bc0..66f0d9eb 100755 --- a/src/include/x64tls.h +++ b/src/include/x64tls.h @@ -4,8 +4,7 @@ typedef struct thread_area_s thread_area_t; typedef struct thread_area_32_s thread_area_32_t; -uint32_t my_set_thread_area(thread_area_t* td); -uint32_t my_set_thread_area_32(thread_area_32_t* td); +uint32_t my_set_thread_area_32(x64emu_t* emu, thread_area_32_t* td); uint32_t my_modify_ldt(x64emu_t* emu, int op, thread_area_t* td, int size); tlsdatasize_t* getTLSData(box64context_t *context); -- cgit 1.4.1