mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 11:49:05 +02:00
arm64jit: Enable breakpoints.
Memory breakpoints not yet really tested.
This commit is contained in:
1 parent
395ac32d63
commit
eb4b59b530
10 files changed
+136
-25
No files matched your search
@@ -488,17 +488,20 @@ u32 CBreakPoints::CheckSkipFirst()
|
||||
return 0;
|
||||
}
|
||||
|
||||
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges()
|
||||
{
|
||||
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
|
||||
std::vector<MemCheck> ranges = memChecks_;
|
||||
for (auto it = memChecks_.begin(), end = memChecks_.end(); it != end; ++it)
|
||||
{
|
||||
MemCheck check = *it;
|
||||
for (const auto &check : memChecks_) {
|
||||
if (!(check.cond & MEMCHECK_READ) && !write)
|
||||
continue;
|
||||
if (!(check.cond & MEMCHECK_WRITE) && write)
|
||||
continue;
|
||||
|
||||
MemCheck copy = check;
|
||||
// Toggle the cached part of the address.
|
||||
check.start ^= 0x40000000;
|
||||
if (check.end != 0)
|
||||
check.end ^= 0x40000000;
|
||||
ranges.push_back(check);
|
||||
copy.start ^= 0x40000000;
|
||||
if (copy.end != 0)
|
||||
copy.end ^= 0x40000000;
|
||||
ranges.push_back(copy);
|
||||
}
|
||||
|
||||
return ranges;
|
||||
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
static u32 CheckSkipFirst();
|
||||
|
||||
// Includes uncached addresses.
|
||||
static const std::vector<MemCheck> GetMemCheckRanges();
|
||||
static const std::vector<MemCheck> GetMemCheckRanges(bool write);
|
||||
|
||||
static const std::vector<MemCheck> GetMemChecks();
|
||||
static const std::vector<BreakPoint> GetBreakpoints();
|
||||
|
||||
Reference in new issue
Block a user