From 73e004de6eb530567b3022531c11b92f55f265a6 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 17 Sep 2026 05:51:23 +0200 Subject: [PATCH] [common/page_table] unmark non-constexpr functions (#4433) `std::atomic` member functions don't translate unto `constexpr`. Trivial change, fixes CI warning. Signed-off-by: lizzie - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4433 Reviewed-by: MaranBr Reviewed-by: CamilleLaVey --- src/common/page_table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/page_table.h b/src/common/page_table.h index 1588eca616..a21fe5311b 100644 --- a/src/common/page_table.h +++ b/src/common/page_table.h @@ -96,15 +96,15 @@ struct PageTable { } /// Write page info atomically - constexpr void Store(bool marked, PageType type, u16 block, uintptr_t pointer) noexcept { + inline void Store(bool marked, PageType type, u16 block, uintptr_t pointer) noexcept { data_raw.store(std::bit_cast(Data{marked, type, block, pointer})); } - constexpr void MarkRasterizerCached() noexcept { + inline void MarkRasterizerCached() noexcept { data_raw.fetch_or(0b111); } - constexpr void MarkDebug(u64 ptr, u16 block) noexcept { + inline void MarkDebug(u64 ptr, u16 block) noexcept { Store(true, PageType::DebugMemory, block, ptr); }