stack_layout: Ignore warning C4324 for StackLayout

We expect the structure to be padded
This commit is contained in:
MerryMage 2021-05-04 16:26:28 +01:00
parent 462c884685
commit ebe44dab7a

View file

@ -13,6 +13,11 @@ namespace Dynarmic::Backend::X64 {
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 {
s64 cycles_remaining;
s64 cycles_to_run;
@ -22,8 +27,13 @@ struct alignas(16) StackLayout {
u32 save_host_MXCSR;
bool check_bit;
bool halt_requested;
};
#ifdef _MSC_VER
#pragma warning(pop)
#endif
static_assert(sizeof(StackLayout) % 16 == 0);
} // namespace Dynarmic::Backend::X64