Commit Graph

250 Commits

Author SHA1 Message Date
ptitSeb 51d9eb966d [DYNAREC] Speedup a bit DYNAREC_DIRTY=1 2025-04-10 19:00:47 +02:00
Yang Liu 0bb41a73c2
[WOW64] More tweaks towards PE build (#2519) 2025-04-10 14:09:23 +02:00
ptitSeb 8c991cb676 [DYNAREC] Better handling of self-loop and added CALLRET=2 settings (ARM64 only, RV64 and LA64 todo) 2025-04-09 15:19:45 +02:00
Yang Liu d0a5352c1a
Moved emit functions to seperate files from signals.h (#2516) 2025-04-09 11:57:16 +02:00
Yang Liu c9b6b5fbe0
Added backtrace.h for holding backtrace-related functions (#2515) 2025-04-09 11:16:32 +02:00
Yang Liu 2c7a2082e6
Introduced box64cpu.h for exported interpreter and dynarec functions (#2490) 2025-04-01 19:02:07 +02:00
Yang Liu c2a77fca27
Added os.h for future usage (#2488) 2025-04-01 13:50:49 +02:00
ptitSeb b7ab26073e [TRACE] Do not print opcode at SIGBUS if x64pc or pc is not readable 2025-03-31 13:14:26 +02:00
ptitSeb 7fa3a1e627 [ARM64_DYNAREC] Simplified 8F opcode, so special cases will be handled in signal directly if needed 2025-03-17 15:39:02 +01:00
ptitSeb 7b065eb17a [TRACE] Improved native backtrace, and create a function so it can be use elsewhere 2025-03-17 15:36:23 +01:00
ptitSeb 1af85c69a1 [DYNAREC] Introduced DYNAREC_DIRTY=2 and changed a profile to use it 2025-03-12 14:39:07 +01:00
ptitSeb c8b6f80f99 Removed isDBFromAddressRange and added that function to cleanDBFromAddressRange as it was used only 1 time and followed by that function anyway 2025-03-07 13:45:41 +01:00
ptitSeb 9444ce0b89 Use getProtection_fast for check_exec test, as it can be used a lot on interpreter mode 2025-03-07 11:24:27 +01:00
ptitSeb a252e87fa9 [BOX32][INTERP] Added some support for BOUND opcode ([ARM64_DYNAREC] too) 2025-02-20 10:45:11 +01:00
ptitSeb 46ad2261e7 [ARM64_DYNAREC] Optimized REP MOVSB 2025-02-07 12:13:21 +01:00
xctan 8c1ffca530
[RV64_DYNAREC] Added codegen for unaligned stores (#2289)
* [RV64_DYNAREC] Added another special SIGBUS case

* [RV64_DYNAREC] Added codegen for unaligned stores
2025-01-24 08:10:45 +01:00
Yang Liu 314edea645
Added [BOX64] prefix for all the stdout logs (#2279)
* Added [BOX64] prefix for all the stdout logs

* Remove some hardcoded prefix

* review
2025-01-21 19:08:09 +01:00
Yang Liu 044dec0bfa
[ENV] Initial refactor of env variables infrastructure (#2274)
* [ENV] Initial refactor of env variables infrastructure

* Ported BOX64_DYNAREC_LOG

* Ported more options

* Ported BOX64_MALLOC_HACK

* Ported BOX64_DYNAREC_TEST

* Ported more options

* Ported more options

* Ported more options

* Ported all options

* Removed old rcfile parser

* Fix

* review

* fix

* fix

* more fixes
2025-01-21 16:13:51 +01:00
ptitSeb 802002b7a3 [TRACE] Added TID on Strange SIGSEGV with Access Error message 2025-01-18 12:20:34 +01:00
ptitSeb 03204f709e [TRACE] Fixed a typo in a debug message 2025-01-17 12:06:19 +01:00
ptitSeb 8432f7d8e2 [DYNAREC] Introduce BOX64_DYNAREC_DIRTY and some profile to use it 2025-01-15 18:24:54 +01:00
ptitSeb 8c71178238 [ARM64_DYNAREC] Added unaligned code for F3 0F 7F opcode 2025-01-15 14:23:37 +01:00
ptitSeb 4eeaddf490 Small improvment on signal handling and db/x64pc fetching 2025-01-14 16:14:51 +01:00
ptitSeb bcc497c865 This should fix the non-dynarec build 2025-01-13 17:27:36 +01:00
ptitSeb 2414f82c38 Try to improve full x86 state gathering on Signal 2025-01-13 16:12:44 +01:00
Yang Liu e533cd0ea1
[SIGNAL][RV64] Supported more opcodes for special cases (#2253) 2025-01-11 17:07:59 +01:00
ptitSeb 9b7e5d69b2 This should fix non-Dynarec builds 2025-01-11 13:50:54 +01:00
ptitSeb 0c5e6d867f Another attempt at fixing non-Dynarec builds 2025-01-11 13:41:27 +01:00
ptitSeb 32c646d0d2 This should fix non-Dynarec builds 2025-01-11 12:48:36 +01:00
ptitSeb 35a6828209 [ARM64_DYNAREC] Better handling unaligned access to device memory, with regeration of code 2025-01-11 12:38:35 +01:00
Yang Liu 47e4aa0b84
[SIGNAL][RV64] Added special unaligned cases handling (#2248) 2025-01-10 15:56:43 +01:00
ptitSeb e11901a7a6 [TRACE] Small change in Double segfault trace 2025-01-07 15:33:22 +01:00
ptitSeb b79ba11d95 [DYNAREC] Imroved log on signal and flags/sse info gathering. [ARM64_DYNAREC] Fixed some case of nat flags being incorectly used 2025-01-05 14:59:59 +01:00
ptitSeb 967c73efd1 [ARM64_DYNAREC] Fixed native flags with signal, and added sse handling 2025-01-02 19:00:49 +01:00
ptitSeb 80a4b61e5c [BOX32] Fixed build 2024-12-31 22:34:08 +01:00
ptitSeb 1d20968f82 [ARM64_DYNAREC] Improved signal handling and flags handling (tbd on other archs) 2024-12-31 22:27:55 +01:00
ptitSeb fcd46e2cdc [ANDROID] Another attempt at fixing the build 2024-12-27 22:54:13 +01:00
ptitSeb f36f9d290d [ANDROID] Fix build 2024-12-27 22:43:49 +01:00
ptitSeb 4fd59da003 [ANDROID] Try to fix signal handling on android 2024-12-27 22:10:24 +01:00
ptitSeb 48db75961e [DYNAREC] Some light rework of the hotpage handling 2024-12-23 12:48:35 +01:00
ptitSeb 8a37b12f81 Simplified ucontext uc_link managment (closer to glibc handling) ([BOX32] too) 2024-12-20 15:39:27 +01:00
ptitSeb 631da8a532 Added an helper function to abort and backtrace (used in [BOX32] when pointer address not 32bits compatible) 2024-12-18 17:15:21 +01:00
Yang Liu 55d6971a23
[RV64_DYNAREC] New register mapping (#2139)
* [RV64_DYNAREC] New register mapping

* Fix
2024-12-12 11:51:24 +01:00
ptitSeb a30433ea12 [NON4KPAGE] Some more adjustments for non-4Kpagesize system (should help #2110) 2024-12-05 11:12:02 +01:00
ptitSeb 93f29d8cd9 Fix X64 build 2024-12-03 14:02:48 +01:00
ptitSeb 794f2104bc Improved signal handling ([BOX32] Too) 2024-12-03 11:43:46 +01:00
ptitSeb 51aa4b0416 Added a new memExist helper function and use it instead of getMmapped were it make sense 2024-11-30 14:02:28 +01:00
ptitSeb f15a187087 [TRACE] Show backtrace on emit_signal too if asked 2024-11-29 10:27:59 +01:00
ptitSeb 8f08a14115 Improved Signal handling ([ARM4_DYNAREC] too) 2024-11-18 17:18:41 +01:00
ptitSeb bc8c786b80 Smal adjustment in singal handling for no-execution error 2024-11-16 12:16:51 +01:00