| 69 | }; |
| 70 | |
| 71 | struct MemCheck |
| 72 | { |
| 73 | MemCheck(); |
| 74 | u32 start; |
| 75 | u32 end; |
| 76 | |
| 77 | bool hasCond; |
| 78 | BreakPointCond cond; |
| 79 | MemCheckCondition memCond; |
| 80 | MemCheckResult result; |
| 81 | BreakPointCpu cpu; |
| 82 | |
| 83 | std::string description; |
| 84 | |
| 85 | u32 numHits; |
| 86 | |
| 87 | u32 lastPC; |
| 88 | u32 lastAddr; |
| 89 | int lastSize; |
| 90 | |
| 91 | void Action(u32 addr, bool write, int size, u32 pc); |
| 92 | void JitBefore(u32 addr, bool write, int size, u32 pc); |
| 93 | void JitCleanup(); |
| 94 | |
| 95 | void Log(u32 addr, bool write, int size, u32 pc); |
| 96 | |
| 97 | bool operator==(const MemCheck& other) const |
| 98 | { |
| 99 | return start == other.start && end == other.end; |
| 100 | } |
| 101 | }; |
| 102 | |
| 103 | // BreakPoints cannot overlap, only one is allowed per address. |
| 104 | // MemChecks can overlap, as long as their ends are different. |