mirror of
https://github.com/libretro/Mesen-S.git
synced 2025-03-01 05:08:06 +00:00
Debugger: Fixed CPU read/write breakpoints breaking on PPU memory read/writes (e.g vram, cgram, oam)
This commit is contained in:
parent
7afc52dc4b
commit
c433b3fe33
@ -5,7 +5,7 @@
|
||||
|
||||
bool Breakpoint::Matches(uint32_t memoryAddr, AddressInfo &info)
|
||||
{
|
||||
if(_memoryType <= DebugUtilities::GetLastCpuMemoryType()) {
|
||||
if(_memoryType <= DebugUtilities::GetLastCpuMemoryType() && !DebugUtilities::IsPpuMemory(info.Type)) {
|
||||
if(_startAddr == -1) {
|
||||
return true;
|
||||
} else if(_endAddr == -1) {
|
||||
|
@ -25,6 +25,19 @@ public:
|
||||
return SnesMemoryType::GsuMemory;
|
||||
}
|
||||
|
||||
static bool IsPpuMemory(SnesMemoryType memType)
|
||||
{
|
||||
switch(memType) {
|
||||
case SnesMemoryType::VideoRam:
|
||||
case SnesMemoryType::SpriteRam:
|
||||
case SnesMemoryType::CGRam:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr CpuType GetLastCpuType()
|
||||
{
|
||||
return CpuType::Cx4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user