mips3: Fixed error flagged by GCC 12 [Ryan Holtz, R. Belmont]

This commit is contained in:
arbee 2022-05-11 21:30:46 -04:00
parent a5647347df
commit f6b18012bc
2 changed files with 4 additions and 5 deletions

View File

@ -1100,7 +1100,6 @@ end
buildoptions {
"-Wno-maybe-uninitialized",
"-Wno-uninitialized", -- netlist
"-Wno-address", -- mips3.cpp
}
end
end

View File

@ -1808,8 +1808,8 @@ void mips3_device::handle_cop0(uint32_t op)
case 0x08: /* BC */
switch (RTREG)
{
case 0x00: /* BCzF */ if (!m_cf[0]) ADDPC(SIMMVAL); break;
case 0x01: /* BCzF */ if (m_cf[0]) ADDPC(SIMMVAL); break;
case 0x00: /* BCzF */ if (!m_cf[0][0]) ADDPC(SIMMVAL); break;
case 0x01: /* BCzF */ if (m_cf[0][0]) ADDPC(SIMMVAL); break;
case 0x02: /* BCzFL */ invalid_instruction(op); break;
case 0x03: /* BCzTL */ invalid_instruction(op); break;
default: invalid_instruction(op); break;
@ -3009,8 +3009,8 @@ void mips3_device::handle_cop2(uint32_t op)
case 0x08: /* BC */
switch (RTREG)
{
case 0x00: /* BCzF */ if (!m_cf[2]) ADDPC(SIMMVAL); break;
case 0x01: /* BCzT */ if (m_cf[2]) ADDPC(SIMMVAL); break;
case 0x00: /* BCzF */ if (!m_cf[2][0]) ADDPC(SIMMVAL); break;
case 0x01: /* BCzT */ if (m_cf[2][0]) ADDPC(SIMMVAL); break;
case 0x02: /* BCzFL */ invalid_instruction(op); break;
case 0x03: /* BCzTL */ invalid_instruction(op); break;
default: invalid_instruction(op); break;