summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/cpu.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2025-01-16 06:24:11 +1100
committer Vas Crabb <vas@vastheman.com>2025-01-16 06:30:13 +1100
commit26d8e47c002f7aa0efd2a6db56a5f48108e1c79c (patch)
tree12b60332c9db368e3f2301b992349ebc753e045d /scripts/src/cpu.lua
parent8cfc62f24d0b8f6f4c3a727e2c2546f9467a773d (diff)
DRC cleanup and minor optimisation: [Windy Fairy, Vas Crabb]
* Build all native back-ends if any native back-end is enabled so errors caused by changing interfaces can be found faster. * cpu/drcbeut.cpp: Moved resolved member function stuff to a place where it can be shared by back-ends. * cpu/drcbearm64.cpp: Use ubfx instruction to extract unordered flag. * cpu/drcbearm64.cpp, cpu/drcbex64.cpp: Bypass trampolines when calling get map variable value and debugger instruction hook functions. * cpu/drcbearm64.cpp: Moved some internal helpers that don't need to be members to anonymous namespace. * cpu/drcbearm64.cpp: Added a comment with some info to help when debugging generated code. * cpu/drcbec.cpp: Put code in the drc namespace.
Diffstat (limited to 'scripts/src/cpu.lua')
-rw-r--r--scripts/src/cpu.lua21
1 files changed, 8 insertions, 13 deletions
diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua
index 8d115a91ed0..f65aaf725be 100644
--- a/scripts/src/cpu.lua
+++ b/scripts/src/cpu.lua
@@ -42,19 +42,14 @@ if (CPU_INCLUDE_DRC) then
MAME_DIR .. "src/devices/cpu/drcumlsh.h",
}
if not _OPTIONS["FORCE_DRC_C_BACKEND"] then
- if (_OPTIONS["PLATFORM"]=="arm64") then
- files {
- MAME_DIR .. "src/devices/cpu/drcbearm64.cpp",
- MAME_DIR .. "src/devices/cpu/drcbearm64.h",
- }
- else
- files {
- MAME_DIR .. "src/devices/cpu/drcbex64.cpp",
- MAME_DIR .. "src/devices/cpu/drcbex64.h",
- MAME_DIR .. "src/devices/cpu/drcbex86.cpp",
- MAME_DIR .. "src/devices/cpu/drcbex86.h",
- }
- end
+ files {
+ MAME_DIR .. "src/devices/cpu/drcbearm64.cpp",
+ MAME_DIR .. "src/devices/cpu/drcbearm64.h",
+ MAME_DIR .. "src/devices/cpu/drcbex64.cpp",
+ MAME_DIR .. "src/devices/cpu/drcbex64.h",
+ MAME_DIR .. "src/devices/cpu/drcbex86.cpp",
+ MAME_DIR .. "src/devices/cpu/drcbex86.h",
+ }
end
if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then