mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
SPU: Fix unregistered channels in RCHCNT
Shouldn't throw exception on realhw.
This commit is contained in:
parent
ad37259ccc
commit
bfa78870cb
1 changed files with 4 additions and 1 deletions
|
@ -2534,9 +2534,12 @@ u32 spu_thread::get_ch_count(u32 ch)
|
||||||
case MFC_WrTagMask:
|
case MFC_WrTagMask:
|
||||||
case MFC_WrListStallAck:
|
case MFC_WrListStallAck:
|
||||||
return 1;
|
return 1;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt::throw_exception("Unknown/illegal channel in RCHCNT (ch=%d [%s])" HERE, ch, ch < 128 ? spu_ch_name[ch] : "???");
|
verify(HERE), ch < 128u;
|
||||||
|
spu_log.error("Unknown/illegal channel in RCHCNT (ch=%d [%s])", ch, spu_ch_name[ch]);
|
||||||
|
return 0; // Default count
|
||||||
}
|
}
|
||||||
|
|
||||||
s64 spu_thread::get_ch_value(u32 ch)
|
s64 spu_thread::get_ch_value(u32 ch)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue