From be29c979c8593367f2dcafc5d33fe4f4c7928199 Mon Sep 17 00:00:00 2001 From: angie Date: Tue, 14 May 2024 15:53:28 -0400 Subject: [PATCH] Recomp __muldi3 and __umoddi3 --- src/main.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 81c6b15..4cab9e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -500,14 +500,12 @@ std::unordered_set ignored_funcs { "rmonGetRcpRegister", "kdebugserver", "send", + // libgcc math routines (these throw off the recompiler) - "__muldi3", "__divdi3", "__udivdi3", - "__umoddi3", - "div64_64", - "div64_32", "__moddi3", + // ido math routines "__ll_div", "__ll_lshift", @@ -626,6 +624,11 @@ std::unordered_set renamed_funcs{ "clear_bufs", "fill_inbuf", "flush_window", + + "__muldi3", + "__umoddi3", + "div64_64", + "div64_32", }; bool read_symbols(RecompPort::Context& context, const ELFIO::elfio& elf_file, ELFIO::section* symtab_section, uint32_t entrypoint, bool has_entrypoint, bool use_absolute_symbols) {