From 04c882388e313ec88ca6a7050d41dd9eb4bd8077 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 30 Nov 2022 02:26:24 -0600 Subject: [PATCH] [ox/preloader] Remove GbaPlatSpec --- deps/ox/src/ox/preloader/platspecs.hpp | 75 -------------------------- 1 file changed, 75 deletions(-) diff --git a/deps/ox/src/ox/preloader/platspecs.hpp b/deps/ox/src/ox/preloader/platspecs.hpp index b8c5507f..11a4cff1 100644 --- a/deps/ox/src/ox/preloader/platspecs.hpp +++ b/deps/ox/src/ox/preloader/platspecs.hpp @@ -39,81 +39,6 @@ struct NativePlatSpec { } }; -struct GbaPlatSpec { - using PtrType = uint32_t; - using size_t = uint32_t; - - static constexpr auto PtrAlign = 4; - static constexpr PtrType RomStart = 0x08000000; - - [[nodiscard]] - static constexpr std::size_t alignOf(const bool) noexcept { - return 1; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const uint8_t) noexcept { - return 1; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const uint16_t) noexcept { - return 2; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const uint32_t) noexcept { - return 4; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const uint64_t) noexcept { - return 8; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const int8_t) noexcept { - return 1; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const int16_t) noexcept { - return 2; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const int32_t) noexcept { - return 4; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const int64_t) noexcept { - return 8; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(auto*) noexcept { - return 4; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const auto*) noexcept { - return 4; - } - - [[nodiscard]] - static constexpr std::size_t alignOf(const auto &v) noexcept { - AlignmentCatcher c; - oxAssert(model(c.interface(), &v), "Could not get alignment for type"); - return c.biggestAlignment; - } - - [[nodiscard]] - static constexpr auto correctEndianness(auto v) noexcept { - return ox::toLittleEndian(v); - } -}; - template [[nodiscard]] constexpr std::size_t alignOf(const T &t) noexcept {