mirror of https://github.com/PCSX2/pcsx2.git
Vif: Fixed logically dead code (not that it mattered)
-Coverity CID 146826: In vifExecQueue(int): Code can never be reached because of a logical contradiction (CWE-561)
This commit is contained in:
parent
4b63847e04
commit
b63590152a
|
@ -46,8 +46,8 @@ __ri void vifExecQueue(int idx)
|
||||||
if (!idx) startcycles = VU0.cycle;
|
if (!idx) startcycles = VU0.cycle;
|
||||||
else startcycles = VU1.cycle;
|
else startcycles = VU1.cycle;
|
||||||
|
|
||||||
if (!idx) vu0ExecMicro(GetVifX.queued_pc);
|
if (!idx) vu0ExecMicro(vif0.queued_pc);
|
||||||
else vu1ExecMicro(GetVifX.queued_pc);
|
else vu1ExecMicro(vif1.queued_pc);
|
||||||
|
|
||||||
///NOTE: Shadowman 2 has SPS with this, uncommenting the correct code fixes it
|
///NOTE: Shadowman 2 has SPS with this, uncommenting the correct code fixes it
|
||||||
if (!idx) { startcycles = ((VU0.cycle-startcycles) + ( vif0ch.qwc - (vif0.vifpacketsize >> 2) )); CPU_INT(VIF_VU0_FINISH, 1/*startcycles * BIAS*/); }
|
if (!idx) { startcycles = ((VU0.cycle-startcycles) + ( vif0ch.qwc - (vif0.vifpacketsize >> 2) )); CPU_INT(VIF_VU0_FINISH, 1/*startcycles * BIAS*/); }
|
||||||
|
|
Loading…
Reference in New Issue