iR5900: Fix Wodr warnings.

This commit is contained in:
lightningterror 2021-10-26 22:09:08 +02:00
parent 6825b5d79a
commit 667f98334a
2 changed files with 17 additions and 11 deletions

View File

@ -448,6 +448,8 @@ void recDSUBU(void)
recDSUB(); recDSUB();
} }
namespace
{
enum class LogicalOp enum class LogicalOp
{ {
AND, AND,
@ -455,6 +457,7 @@ enum class LogicalOp
XOR, XOR,
NOR NOR
}; };
} // namespace
static void recLogicalOp_constv(LogicalOp op, int info, int creg, u32 vreg) static void recLogicalOp_constv(LogicalOp op, int info, int creg, u32 vreg)
{ {

View File

@ -224,12 +224,15 @@ void recANDI_const()
g_cpuConstRegs[_Rt_].UD[0] = g_cpuConstRegs[_Rs_].UD[0] & (u64)_ImmU_; // Zero-extended Immediate g_cpuConstRegs[_Rt_].UD[0] = g_cpuConstRegs[_Rs_].UD[0] & (u64)_ImmU_; // Zero-extended Immediate
} }
namespace
{
enum class LogicalOp enum class LogicalOp
{ {
AND, AND,
OR, OR,
XOR XOR
}; };
} // namespace
static void recLogicalOpI(int info, LogicalOp op) static void recLogicalOpI(int info, LogicalOp op)
{ {