LC
1a77f41846
Config: Add missing override specifier
2026-07-27 14:01:11 -04:00
LC
d1947f715c
Config: Move strings in constructor where applicable
...
Same thing, just a little less memory churn.
2026-07-27 14:00:06 -04:00
LC
3f7971b7d2
Config: Mark internally linked where applicable
...
Makes it obvious these aren't supposed to be exposed.
2026-07-27 13:56:53 -04:00
LC
2cbd5cb3e6
Config: Amend prototypes where applicable
...
Previously, these didn't match up with the implementation (luckily it's
only used internally at the moment).
2026-07-27 13:54:25 -04:00
FrontMage
35518a5fa0
FEXCore: Ignore inactive JIT guard ranges
2026-07-24 07:57:48 +08:00
Brendan Shanks
074743d6e8
Windows: Explicitly use *A/*W Win32 functions
2026-07-22 15:16:44 -07:00
Brendan Shanks
8b446de059
Windows: Use GetModuleHandleW() to avoid unnecessary string conversions
2026-07-22 15:16:44 -07:00
Ryan Houdek
99b8df4e6f
Merge pull request #5773 from lioncash/fdres
...
ThreadManager: Fix error return values in FrontendAllocateSlots()
2026-07-19 16:14:50 -07:00
LC
331655182d
ThreadManager: Fix error return values in FrontendAllocateSlots()
...
If ftruncate or the mmap ever fail for whatever reason, then we need to
return the current size, rather than the new size.
2026-07-21 15:12:41 -04:00
Ryan Houdek
ec95330dcd
Merge pull request #5765 from lioncash/signal
...
SignalDelegator: Group members together
2026-07-19 16:13:26 -07:00
LC
3959863462
SignalDelegator: Group members together
...
Hides all public members and situates all of them together to make for
an easier overview.
2026-07-19 21:10:35 -04:00
LC
6e37dca566
LinuxAllocator: Reduce MemAllocator32Bit size by 16 bytes
...
These constants don't need to be member vars.
2026-07-19 18:37:38 -04:00
LC
a3d0b67777
LinuxEmulation: Resolve missing prototype warnings
...
Ensures all functions are marked whether they're intended to be
internally linked or not.
2026-07-17 00:12:28 -04:00
Ryan Houdek
a1cc5d034e
Merge pull request #5755 from lioncash/host
...
HostRunner: Tidy up interface
2026-07-16 12:35:18 -07:00
Ryan Houdek
b478f54aea
Merge pull request #5754 from lioncash/vdso
...
VDSO_Emulation: Mark relevant members as internally linked
2026-07-16 12:34:27 -07:00
LC
a4d5fbae63
HostRunner: Tidy up interface
...
We've accumulated a bunch of forward declarations that are no longer
necessary. We also don't need to pass the signal delegator as a
reference, since we're not modifying the pointer itself, it's just
passed in to register a signal handler.
2026-07-16 07:39:03 -04:00
LC
2943b87c83
VDSO_Emulation: Mark relevant members as internally linked
...
Silences missing prototype warnings and makes it obvious they're only
used within the translation unit.
2026-07-16 07:28:50 -04:00
LC
9575506391
FEXServer: Fix some missing declaration warnings
...
Makes sure prototypes are visible to their implementation. Also marks
functions internally linked where applicable.
Also makes it a little more visibly obvious which bits are exposed for
use elsewhere.
2026-07-16 07:10:32 -04:00
LC
70eafc4f6f
FEXGetConfig: Mark helpers as static where applicable
...
Makes them internally linked, and also lets them be caught by the
compiler when they're unused.
2026-07-15 12:22:12 -04:00
LC
38cbd2aeb2
FEXGetConfig: Add convenience option for dumping system/tso info
...
Just lets you get a broad overview all at once instead of needing to
type out every long command.
Now it's easier to be lazy and just pass "-e", or "--all-emu-info".
2026-07-15 12:22:10 -04:00
Ryan Houdek
372891361c
HostFeatures: Pull MMFR3 identification register
...
This has the S1POE flag that we will want to use in the future.
2026-07-14 20:09:31 -07:00
Ryan Houdek
50c75d1f43
Move Linux version calculation to common code
2026-07-14 20:06:37 -07:00
LC
23402bf31b
x32/Semaphore: Fix storing of message type in msgrcv
...
This was previously storing into the local compat handler, not the
actual managed message.
2026-07-13 17:30:27 -04:00
LC
50be718b72
x32/Semaphore: Mark _ipc as static
...
This isn't used outside of the translation unit.
2026-07-13 17:30:24 -04:00
Ryan Houdek
f2b679f602
Merge pull request #5728 from lioncash/halves
...
x32/FD: Combine offset halves directly
2026-07-12 11:15:10 -07:00
Ryan Houdek
b9d97dffe7
Merge pull request #5727 from lioncash/vmsplice
...
x32/FD: Make use of SanitizeIOCount for vector construction in vmsplice
2026-07-12 11:14:31 -07:00
LC
a6c8f0d300
x32/FD: Combine offset halves directly
...
Shortens these up a little.
2026-07-12 13:31:48 -04:00
LC
046750354e
x32/FD: Make use of SanitizeIOCount for vector construction in vmsplice
...
Makes this consistent with the other fd syscalls that make temporary
buffers.
2026-07-12 13:01:58 -04:00
LC
ca2d2520d2
Signals: Preprocessor disable intentional dead code in userfaultfd
...
Noticed this when going through the syscalls. Avoids potential warnings.
2026-07-12 12:16:07 -04:00
Ryan Houdek
bc16f902d1
Merge pull request #5724 from lioncash/file
...
WinAPI/IO: Fix handling of end of file offset in SetFilePointerEx
2026-07-11 22:44:55 -07:00
LC
f5ae888597
WinAPI/IO: Fix handling of end of file offset in SetFilePointerEx
...
This just means the end of the file is being used as the base offset.
Also note that according to the documentation for SetFilePositionEx,
that setting the position beyond the current file size is not considered
an error as far as the API is concerned.
2026-07-12 01:26:23 -04:00
Ryan Houdek
376e3af058
Merge pull request #5723 from lioncash/gdb
2026-07-11 21:54:57 -07:00
LC
7d149ebec4
GdbServer: Add missing log format argument
2026-07-12 00:28:29 -04:00
LC
37c809471b
ElfContainer: Amend entry iteration in GetDynamicLibs()
...
These were using i in the termination condition, which is for section
headers, not entries.
2026-07-12 00:19:28 -04:00
Ryan Houdek
341a5196ba
Merge pull request #5701 from lioncash/thread
...
Thread: Amend new thread handling in HandleNewClone()
2026-07-11 17:09:59 -07:00
Ryan Houdek
48ce5bf6e6
Merge pull request #5714 from lioncash/readahead
...
x32/FD: Fix readahead upper offset type
2026-07-11 11:20:49 -07:00
Ryan Houdek
617a518714
Merge pull request #5713 from lioncash/select
...
x32/FD: Correct total word calculation in select() variants
2026-07-11 11:19:29 -07:00
Ryan Houdek
480f45f2f3
Merge pull request #5712 from lioncash/bpf
...
BPFEmitter: Amend instruction class checking in HandleStore()
2026-07-11 11:08:58 -07:00
Ryan Houdek
0e8b01c1b5
Merge pull request #5711 from lioncash/fault
...
x64/Thread: Amend faulting copy handling related to LDTs
2026-07-11 11:04:47 -07:00
Ryan Houdek
b750d6772f
Merge pull request #5710 from lioncash/close
...
Common/Async: Handle fd closing a little better
2026-07-11 11:03:10 -07:00
LC
a90a7dbec7
x32/FD: Fix readahead upper offset type
...
This should be a uint32_t
2026-07-11 13:33:11 -04:00
LC
2250bd58a2
x32/FD: Deduplicate guest and host fd set management
...
Same behavior, but less copy pastey
2026-07-11 13:23:19 -04:00
LC
126be45ed1
x32/FD: Correct total word calculation in select() variants
...
Previously this would result in a larger amount of words specified than
necessary.
e.g. Given nfds = 1:
With AlignUp(1, 32) / 4, we'd end up with supposedly eight words, when it
should only be one word.
On the other extreme, given a full fd set of 1024 fds, then we'd end up
with 256 words, when it should only be 32.
2026-07-11 12:53:08 -04:00
LC
e021a55abd
BPFEmitter: Amend instruction class checking in HandleStore()
...
This was previously checking for a load class, which would result in ST
clobbering the index register.
2026-07-11 12:26:11 -04:00
LC
2ad6254894
x64/Thread: Amend faulting copy handling related to LDTs
...
CopyToUser doesn't return the number of bytes copied, but rather returns
0 to indicate success, otherwise a fault has occurred (and the SIGSEGV
handler has set X0 to EFAULT)
2026-07-11 11:57:38 -04:00
LC
5bd97c2f63
Common/Async: Handle fd closing a little better
...
We should be checking against -1, rather than just anything non-zero.
2026-07-11 10:49:08 -04:00
LC
f16bc12b7d
SignalDelegator: Remove odd double negation in GuestSigProcMask
...
We can just reduce it to normal null comparisons.
2026-07-11 05:42:48 -04:00
Ryan Houdek
d2f096187c
Merge pull request #5705 from lioncash/thread3
2026-07-10 22:34:04 -07:00
Ryan Houdek
bd1e61befd
Merge pull request #5704 from lioncash/host
2026-07-10 22:33:30 -07:00
Ryan Houdek
b97165bec9
Merge pull request #5703 from lioncash/size
2026-07-10 22:32:45 -07:00