1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Fix compiler warnings about unused args for aarch64

This commit is contained in:
kd-11 2024-08-19 22:44:32 +03:00 committed by kd-11
parent fbcd8e32b8
commit c2f5de1c55
7 changed files with 23 additions and 4 deletions

View File

@ -2310,6 +2310,10 @@ thread_base::native_entry thread_base::make_trampoline(u64(*entry)(thread_base*
c.bind(_ret);
c.add(x86::rsp, 0x28);
c.ret();
#else
UNUSED(c);
UNUSED(args);
UNUSED(entry);
#endif
});
}

View File

@ -129,7 +129,9 @@ struct ppu_exec_select
}; \
}
#ifdef ARCH_X64
static constexpr ppu_opcode_t s_op{};
#endif
namespace asmjit
{
@ -293,7 +295,7 @@ struct ppu_abstract_t
}
template <typename T>
void operator=(T&& _val) const
void operator=([[maybe_unused]] T&& _val) const
{
FOR_X64(store_op, kIdMovaps, kIdVmovaps, static_cast<asmjit::ppu_builder*>(g_vc)->ppu_vr(bf_t<u32, I, N>{}, true), std::forward<T>(_val));
}
@ -316,11 +318,9 @@ struct ppu_abstract_t
}
template <typename T>
void operator=(T&& _val) const
void operator=([[maybe_unused]] T&& _val) const
{
#if defined(ARCH_X64)
FOR_X64(store_op, kIdMovaps, kIdVmovaps, *this, std::forward<T>(_val));
#endif
}
} sat{};
};

View File

@ -3292,6 +3292,8 @@ const auto ppu_stcx_accurate_tx = build_function_asm<u64(*)(u32 raddr, u64 rtime
maybe_flush_lbr(c);
c.ret();
#else
UNUSED(args);
// Unimplemented should fail.
c.brk(Imm(0x42));
c.ret(a64::x30);

View File

@ -216,6 +216,9 @@ DECLARE(spu_runtime::tr_all) = []
{
using namespace asmjit;
// Args implicitly defined via registers
UNUSED(args);
// Inputs:
// x19 = m_thread a.k.a arg[0]
// x20 = ls_base

View File

@ -69,7 +69,9 @@ struct spu_exec_select
}
};
#ifdef ARCH_X64
static constexpr spu_opcode_t s_op{};
#endif
namespace asmjit
{

View File

@ -848,6 +848,8 @@ const auto spu_putllc_tx = build_function_asm<u64(*)(u32 raddr, u64 rtime, void*
maybe_flush_lbr(c);
c.ret();
#else
UNUSED(args);
c.brk(Imm(0x42));
c.ret(a64::x30);
#endif
@ -972,6 +974,8 @@ const auto spu_putlluc_tx = build_function_asm<u64(*)(u32 raddr, const void* rda
maybe_flush_lbr(c);
c.ret();
#else
UNUSED(args);
c.brk(Imm(0x42));
c.ret(a64::x30);
#endif
@ -1105,6 +1109,8 @@ const auto spu_getllar_tx = build_function_asm<u64(*)(u32 raddr, void* rdata, cp
maybe_flush_lbr(c);
c.ret();
#else
UNUSED(args);
c.brk(Imm(0x42));
c.ret(a64::x30);
#endif

View File

@ -1377,3 +1377,5 @@ extern bool serialize(utils::serial& ar, T& obj);
#define ENABLE_BITWISE_SERIALIZATION using enable_bitcopy = std::true_type;
#define SAVESTATE_INIT_POS(...) static constexpr double savestate_init_pos = (__VA_ARGS__)
#define UNUSED(expr) do { (void)(expr); } while (0)