i can't reproduce this anymore

This commit is contained in:
Jaklyy 2024-09-24 09:47:32 -04:00
parent 7fb18b1155
commit e1d4fbef75
2 changed files with 0 additions and 29 deletions

View File

@ -346,27 +346,6 @@ void ARMv5::JumpTo(u32 addr, bool restorecpsr)
NDS.MonitorARM9Jump(addr);
}
void ARMv5::JumpTo8_16Bit(const u32 addr)
{
// 8 and 16 loads (signed included) to pc
if (!(CP15Control & 0x1))
{
// if the pu is disabled it behaves like a normal jump
JumpTo((CP15Control & (1<<15)) ? (addr & ~0x1) : addr);
}
else
{
if (addr & 0x3)
{
// if the pu is enabled it will always prefetch abort if not word aligned
// although it will still attempt (and fail) to enter thumb mode if enabled
if ((addr & 0x1) && !(CP15Control & (1<<15))) CPSR |= 0x20;
PrefetchAbort();
}
else JumpTo(addr);
}
}
void ARMv4::JumpTo(u32 addr, bool restorecpsr)
{
if (restorecpsr)
@ -411,11 +390,6 @@ void ARMv4::JumpTo(u32 addr, bool restorecpsr)
}
}
void ARMv4::JumpTo8_16Bit(const u32 addr)
{
JumpTo(addr & ~1); // checkme?
}
void ARM::RestoreCPSR()
{
u32 oldcpsr = CPSR;

View File

@ -75,7 +75,6 @@ public:
virtual void FillPipeline() = 0;
virtual void JumpTo(u32 addr, bool restorecpsr = false) = 0;
virtual void JumpTo8_16Bit(u32 addr) = 0;
void RestoreCPSR();
void Halt(u32 halt)
@ -244,7 +243,6 @@ public:
void FillPipeline() override;
void JumpTo(u32 addr, bool restorecpsr = false) override;
void JumpTo8_16Bit(const u32 addr) override;
void PrefetchAbort();
void DataAbort();
@ -388,7 +386,6 @@ public:
void FillPipeline() override;
void JumpTo(u32 addr, bool restorecpsr = false) override;
void JumpTo8_16Bit(const u32 addr) override;
template <CPUExecuteMode mode>
void Execute();