Debugger: Notate memset tags directly.

This commit is contained in:
Unknown W. Brackets committed 2021-02-15 15:01:23 -08:00
1 parent ca2f7df94f
commit 88e2b9b740
12 files changed
+25 -32

No files matched your search

+2 -2
View File
@@ -459,7 +459,7 @@ void Write_Opcode_JIT(const u32 _Address, const Opcode& _Value)
Memory::WriteUnchecked_U32(_Value.encoding, _Address);
}
void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength) {
void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength, const std::string &tag) {
if (IsValidRange(_Address, _iLength)) {
uint8_t *ptr = GetPointerUnchecked(_Address);
memset(ptr, _iValue, _iLength);
@@ -468,7 +468,7 @@ void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength) {
Write_U8(_iValue, (u32)(_Address + i));
}
NotifyMemInfo(MemBlockFlags::WRITE, _Address, _iLength, "Memset");
NotifyMemInfo(MemBlockFlags::WRITE, _Address, _iLength, tag);
}
} // namespace