Merge pull request #22470 from hrydgard/mipsstate-standard-layout

Make MIPSState standard-layout again, so offsetof is valid
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-10-09 14:49:00 +02:00
commit 53147de87d
1 file changed
+6 -1
+6 -1
View File
@@ -20,6 +20,7 @@
#include "ppsspp_config.h"
#include <cstddef>
#include <type_traits>
#include <vector>
#include "Common/CommonTypes.h"
@@ -289,12 +290,16 @@ public:
void ProcessPendingInvalidates();
private:
// Don't make private, see the static_assert below.
// Doesn't need save stating.
std::vector<PendingCacheOperation> pendingInvalidates_;
bool invalidateAll_ = false;
};
// Access control ('private') break standard layout. Let's not allow it, to avoid excessive
// compiler warnings.
static_assert(std::is_standard_layout_v<MIPSState>, "the JITs use offsetof on MIPSState");
class MIPSDebugInterface;
// The one we are compiling or running currently