mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 15:40:00 +01:00
stack_layout: Ignore warning C4324 for StackLayout
We expect the structure to be padded
This commit is contained in:
parent
462c884685
commit
ebe44dab7a
@ -13,6 +13,11 @@ namespace Dynarmic::Backend::X64 {
|
|||||||
|
|
||||||
constexpr size_t SpillCount = 64;
|
constexpr size_t SpillCount = 64;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4324) // Structure was padded due to alignment specifier
|
||||||
|
#endif
|
||||||
|
|
||||||
struct alignas(16) StackLayout {
|
struct alignas(16) StackLayout {
|
||||||
s64 cycles_remaining;
|
s64 cycles_remaining;
|
||||||
s64 cycles_to_run;
|
s64 cycles_to_run;
|
||||||
@ -22,8 +27,13 @@ struct alignas(16) StackLayout {
|
|||||||
u32 save_host_MXCSR;
|
u32 save_host_MXCSR;
|
||||||
|
|
||||||
bool check_bit;
|
bool check_bit;
|
||||||
|
bool halt_requested;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
static_assert(sizeof(StackLayout) % 16 == 0);
|
static_assert(sizeof(StackLayout) % 16 == 0);
|
||||||
|
|
||||||
} // namespace Dynarmic::Backend::X64
|
} // namespace Dynarmic::Backend::X64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user