mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-03-04 20:47:03 +00:00
CoreState: Adds a gregs offset check
This is required to be less than the maximum range for LDP and STP in the Arm64 Dispatcher otherwise it breaks. Necessary to ensure this when reorganizing the CoreState.
This commit is contained in:
parent
ee165249bc
commit
9a71443005
@ -163,6 +163,7 @@ static_assert(std::is_trivially_copyable_v<CPUState>, "Needs to be trivial");
|
||||
static_assert(std::is_standard_layout_v<CPUState>, "This needs to be standard layout");
|
||||
static_assert(offsetof(CPUState, xmm) % 32 == 0, "xmm needs to be 256-bit aligned!");
|
||||
static_assert(offsetof(CPUState, mm) % 16 == 0, "mm needs to be 128-bit aligned!");
|
||||
static_assert(offsetof(CPUState, gregs[15]) <= 504, "gregs maximum offset must be <= 504 for ldp/stp to work");
|
||||
static_assert(offsetof(CPUState, DeferredSignalRefCount) % 8 == 0, "Needs to be 8-byte aligned");
|
||||
|
||||
struct InternalThreadState;
|
||||
|
Loading…
x
Reference in New Issue
Block a user