Ryan Houdek
317f92f4c8
Merge pull request #4851 from lioncash/ir
...
IR: Remove unnecessary forward declarations/headers
2025-09-08 19:47:51 -07:00
Lioncache
b2407352a9
IR: Remove unnecessary forward declarations/headers
...
Pares the base IR header down to a modest size and also reveals a few indirect
reliances on the allocator facilities.
2025-09-08 22:03:25 -04:00
Lioncache
e1b5e3e112
VDSO_Emulator: Cull unnecessary includes
...
Reveals a bunch of indirect includes inside the SignalDelegator.
2025-09-08 21:43:31 -04:00
Ryan Houdek
09793d295f
Merge pull request #4849 from lioncash/config
...
Config: Remove unused Context.h include
2025-09-08 16:59:38 -07:00
Ryan Houdek
e9f8c01e04
Merge pull request #4848 from lioncash/thread
...
InternalThreadState: Remove unused includes
2025-09-08 16:59:15 -07:00
Lioncache
f69821d7db
Config: Remove unused Context.h include
...
Removes quite a heavy include from the config system and specifies any
indirect inclusion that were relied on because of it.
2025-09-08 15:23:30 -04:00
Lioncache
1e03219ca3
Syscalls/Thread: Add missing forward declarations
...
Currently we were lucky that these were being seen already when being included.
2025-09-08 14:58:30 -04:00
Lioncache
de8b4438e3
ThreadManager: Eliminate indirect inclusions
...
We had quite a bit of dependencies that were currently being indirectly relied upon.
We can forward declare the relevant ones and add the includes for the ones that are
explicit.
2025-09-08 14:58:27 -04:00
Ryan Houdek
2cfd3330f0
Merge pull request #4847 from lioncash/loader
...
CodeLoader: Tidy up interface
2025-09-08 11:50:30 -07:00
Lioncache
6b2363d3f6
InternalThreadState: Remove unused headers
...
Removes some includes in the core header and resolves indirect includes elsewhere.
2025-09-08 14:13:01 -04:00
Ryan Houdek
e76af56c86
Merge pull request #4845 from lioncash/thunk
...
Core/Thunks: Remove unused IR header/forward declarations
2025-09-08 10:03:34 -07:00
Lioncache
17fbe52cf6
CodeLoader: Mark GetStackPointer() as const
...
This isn't intended to modify anything.
2025-09-08 12:19:15 -04:00
Lioncache
ecc526a9d8
CodeLoader: Make GetApplicationArguments() return by reference
...
We don't really need to make this potentially return a null pointer when we could always return a valid instance
that would just happen to be empty if unused.
2025-09-08 12:07:19 -04:00
Lioncache
436f4aa953
CodeLoader: Make GetExecveArguments() return by value
...
Same behavior, but more straightforward.
2025-09-08 12:07:19 -04:00
Lioncache
fd10ce0600
CodeLoader: Return auxv results by value
...
Same behavior, but without the need to care about out values.
2025-09-08 12:07:14 -04:00
Lioncache
d9cd40eb48
CodeLoader: Remove unused AddIR() member function
...
This isn't used in any implementations anymore.
2025-09-08 10:34:13 -04:00
Lioncache
9b9ab16b55
Common: Remove duplicated StringUtil functionality
...
We already have an equivalent header within FEXCore that's header only,
so we can adapt it to conform for both cases, allowing for removal of
one of them.
2025-09-08 09:44:25 -04:00
Lioncache
d36c387c1f
Core/Thunks: Remove unused IR/forward declarations
...
Moves the IR include into one of the more specific headers, which avoids dumping the IR header into any core bits that use the interface.
Also uncovered a missing header guard.
2025-09-06 22:28:27 -04:00
Ryan Houdek
ea8ae2bf2c
Merge pull request #4839 from lioncash/utils
...
Common Utils: Remove unused/unnecessary inclusions from headers
2025-09-06 15:50:00 -07:00
Lioncache
ac88e7fabf
Common: Remove EnvironmentLoader.cpp/.h
...
This has been unused since the transition to the layered config system.
2025-09-06 10:23:53 -04:00
Lioncache
7869d80073
VolatileMetadata: Add missing include
2025-09-05 14:16:23 -04:00
Lioncache
ea39d80e83
StringUtil: Move algorithm header to cpp file
...
The header doesn't make any direct use of it.
2025-09-05 14:16:23 -04:00
Lioncache
62e481a608
JSONPool: Remove unnecessary bounds check
...
Given the generic context here, we should just use std::data
2025-09-05 14:16:20 -04:00
Lioncache
bac7148d69
JSONPool: Remove unnecessary include
...
This isn't used in this header.
2025-09-05 13:52:05 -04:00
Lioncache
62f16a3c4b
FEXServerClient: Remove unnecessary includes from header
...
We can reduce includes, such as logging by specifying a concrete size for logging levels,
allowing the enum to be forward declared. We can also move FillHeader into the cpp file,
allowing the syscalls header to be removed.
2025-09-05 13:45:31 -04:00
Lioncache
248ecd54e4
FDUtils: Remove unused headers
2025-09-05 13:30:09 -04:00
Lioncache
1f59accb4e
CPUInfo: Remove unused header
2025-09-05 13:28:54 -04:00
Lioncache
dd7e4375cf
Config: Add missing includes
2025-09-05 13:26:43 -04:00
Ryan Houdek
3db1f1e01f
Merge pull request #4826 from Sonicadvance1/classify_features
...
unittests/ASM: Adds support for classifying more requirements
2025-09-04 11:19:41 -07:00
Tony Wasserka
6f51092998
AsyncNet: Simplify declaration of ancillary buffer
2025-09-04 14:40:39 +02:00
Ryan Houdek
7b749558df
HostRunner: Add support for non-fsgsbase hardware
2025-09-02 18:37:59 -07:00
Ryan Houdek
1797c3c617
unittests/ASM: Add support for more feature flags
2025-09-02 18:15:31 -07:00
Lioncache
1f756fb386
General: Replace usages of .at(0) with .data() where applicable
...
This is generally more straightforward in cases where bounds checking isn't necessary.
2025-09-02 13:03:37 -04:00
Tony Wasserka
7b1db40d4a
Config: Remove legacy code caching interfaces
2025-09-02 12:06:57 +02:00
Tony Wasserka
dcaa90a855
CodeCache: Remove legacy interfaces
2025-09-02 12:06:52 +02:00
Ryan Houdek
ae90040ed2
Merge pull request #4810 from lioncash/file
...
FileManagement: Minor interface cleanup
2025-09-01 14:39:48 -07:00
Lioncache
d4e679432c
FileManagement: Add missing includes
...
Gets rid of a few indirect dependencies.
2025-08-29 13:42:17 -04:00
Lioncache
54c8cb9fd7
FileManagement: Mark helper functions as const where applicable
...
These don't modify internal class state, so we can mark them as such.
2025-08-29 13:41:58 -04:00
Lioncache
73f36fb5b3
SignalDelegator: Move includes into cpp file
...
Reduces header dependencies
2025-08-29 10:07:56 -04:00
Ryan Houdek
f866ad52dc
Merge pull request #4807 from Sonicadvance1/remove_visibility
...
Remove visibility on functions that is no longer necessary
2025-08-28 18:34:37 -07:00
Ryan Houdek
4188d4d10b
Add hidden visibility to FEXLoader/LinuxEmulation/Common
2025-08-27 16:14:59 -07:00
LC
7431495f13
Merge pull request #4797 from Sonicadvance1/more_brk_fixes
...
More BRK fixes
2025-08-27 16:49:55 -04:00
Ryan Houdek
80cacc462e
X86Tables: Move x87 tables to be constexpr
2025-08-27 12:24:25 -07:00
Ryan Houdek
5b0709de2f
Syscalls: Removes an old workaround for MAP_FIXED_NOREPLACE
...
We don't support these old kernels, so remove this workaround.
2025-08-27 11:52:10 -07:00
Ryan Houdek
87db37c65e
Syscalls: Allocate brk granules at page size
...
This matches kernel behaviour for how brk works. I initially implemented
this as a way to speed up some early applications that relied heavily on
brk. We're long past that time and we should match Linux behaviour
instead.
This fixes issues where applications (FEXLoader really) can see we've
allocated a larger granule and breaks self-hosting. There's no reason to
be smarter around this, if applications want more perf then they'll
switch to a better allocator than brk.
Also need to make sure that after the brk region has been reserved, to
unmap its initial mapping to allow future mmap syscalls to overwrite it.
We need to reserve it early to ensure the region initially exists and we
don't accidentally map other things in that space. Then it is up to the
guest if they don't want to overwrite it.
2025-08-27 11:51:52 -07:00
Ryan Houdek
100db13f99
Syscalls: Make sure to munmap on full brk zero
...
Failed to munmap in this case.
2025-08-27 11:51:52 -07:00
Ryan Houdek
d2061b27a2
Syscalls: Rename DataSpaceMaxSize
...
Implied the maximum size that brk could grow to. Which isn't correct, it
is the current maximum size mapped which is page size, versus the
current brk offset which is byte ranged.
2025-08-27 11:51:52 -07:00
Ryan Houdek
002dfb9b84
Syscalls: Remove unused DataSpaceStartingSize
2025-08-27 11:51:52 -07:00
Ryan Houdek
7df1ed271f
Merge pull request #4799 from neobrain/refactor_ranges
...
VolatileMetadata: Clean up implementation using ranges::views::split
2025-08-25 11:45:44 -07:00
Ryan Houdek
62b80903f0
Merge pull request #4801 from neobrain/refactor_maybe_unused
...
Reduce use of maybe_unused attributes
2025-08-25 11:43:09 -07:00