diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-06-18 10:52:28 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-06-18 10:52:28 +0200 |
| commit | 59dd97cb72b1a4142ddd61eea36170de4ffff926 (patch) | |
| tree | abf8bfef31819995ce5631bd5d3d869fa1fb79b4 /src/include | |
| parent | a0a98419f072f22479360670a35080ee9113d24f (diff) | |
| download | box64-59dd97cb72b1a4142ddd61eea36170de4ffff926.tar.gz box64-59dd97cb72b1a4142ddd61eea36170de4ffff926.zip | |
Added some support for 32bits code (doesn't seems enough for wow64 yet)
Diffstat (limited to 'src/include')
| -rwxr-xr-x | src/include/regs.h | 2 | ||||
| -rwxr-xr-x | src/include/x64emu.h | 2 | ||||
| -rwxr-xr-x | src/include/x64tls.h | 3 |
3 files changed, 3 insertions, 4 deletions
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); |