Fix function signature for RSP microcodes that don't have overlays (#126)

This commit is contained in:
Wiseguy 2025-01-26 22:32:15 -05:00 committed by GitHub
parent b2d07ecd5a
commit b18e0ca2dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1054,7 +1054,7 @@ void create_function(const std::string& function_name, std::ofstream& output_fil
fmt::print(output_file, " r1 = 0xFC0;\n");
} else {
fmt::print(output_file,
"RspExitReason {}(uint8_t* rdram) {{\n"
"RspExitReason {}(uint8_t* rdram, [[maybe_unused]] uint32_t ucode_addr) {{\n"
" uint32_t r1 = 0, r2 = 0, r3 = 0, r4 = 0, r5 = 0, r6 = 0, r7 = 0;\n"
" uint32_t r8 = 0, r9 = 0, r10 = 0, r11 = 0, r12 = 0, r13 = 0, r14 = 0, r15 = 0;\n"
" uint32_t r16 = 0, r17 = 0, r18 = 0, r19 = 0, r20 = 0, r21 = 0, r22 = 0, r23 = 0;\n"