aica: remove useless verify on reg access sizes

Fixes MINIDUMP-6C
This commit is contained in:
Flyinghead 2023-01-28 18:22:39 +01:00
parent 6f5f91245b
commit 0a27b63584
1 changed files with 3 additions and 8 deletions

View File

@ -166,27 +166,23 @@ static void AicaInternalDMA()
template<typename T>
void WriteAicaReg(u32 reg, T data)
{
constexpr size_t sz = sizeof(T);
switch (reg)
{
case SCIPD_addr:
verify(sz!=1);
// other bits are read-only
if (data & (1<<5))
if (data & (1 << 5))
{
SCIPD->SCPU=1;
SCIPD->SCPU = 1;
update_arm_interrupts();
}
break;
case SCIRE_addr:
verify(sz != 1);
SCIPD->full &= ~data /*& SCIEB->full)*/; //is the & SCIEB->full needed ? doesn't seem like it
SCIPD->full &= ~data;
update_arm_interrupts();
break;
case MCIPD_addr:
verify(sz != 1);
// other bits are read-only
if (data & (1 << 5))
{
@ -197,7 +193,6 @@ void WriteAicaReg(u32 reg, T data)
break;
case MCIRE_addr:
verify(sz != 1);
MCIPD->full &= ~data;
UpdateSh4Ints();
break;