Add write32 method to DebugInterface

This commit is contained in:
Kingcom 2014-07-31 13:33:43 +02:00
parent 90eb776310
commit e862047142
2 changed files with 20 additions and 0 deletions

View File

@ -259,6 +259,15 @@ void R5900DebugInterface::write8(u32 address, u8 value)
memWrite8(address,value); memWrite8(address,value);
} }
void R5900DebugInterface::write32(u32 address, u32 value)
{
if (!isValidAddress(address))
return;
memWrite32(address,value);
}
int R5900DebugInterface::getRegisterCategoryCount() int R5900DebugInterface::getRegisterCategoryCount()
{ {
return EECAT_COUNT; return EECAT_COUNT;
@ -565,6 +574,14 @@ void R3000DebugInterface::write8(u32 address, u8 value)
iopMemWrite8(address,value); iopMemWrite8(address,value);
} }
void R3000DebugInterface::write32(u32 address, u32 value)
{
if (!isValidAddress(address))
return;
iopMemWrite32(address,value);
}
int R3000DebugInterface::getRegisterCategoryCount() int R3000DebugInterface::getRegisterCategoryCount()
{ {
return IOPCAT_COUNT; return IOPCAT_COUNT;

View File

@ -28,6 +28,7 @@ public:
virtual u64 read64(u32 address) = 0; virtual u64 read64(u32 address) = 0;
virtual u128 read128(u32 address) = 0; virtual u128 read128(u32 address) = 0;
virtual void write8(u32 address, u8 value) = 0; virtual void write8(u32 address, u8 value) = 0;
virtual void write32(u32 address, u32 value) = 0;
// register stuff // register stuff
virtual int getRegisterCategoryCount() = 0; virtual int getRegisterCategoryCount() = 0;
@ -65,6 +66,7 @@ public:
virtual u64 read64(u32 address); virtual u64 read64(u32 address);
virtual u128 read128(u32 address); virtual u128 read128(u32 address);
virtual void write8(u32 address, u8 value); virtual void write8(u32 address, u8 value);
virtual void write32(u32 address, u32 value);
// register stuff // register stuff
virtual int getRegisterCategoryCount(); virtual int getRegisterCategoryCount();
@ -96,6 +98,7 @@ public:
virtual u64 read64(u32 address); virtual u64 read64(u32 address);
virtual u128 read128(u32 address); virtual u128 read128(u32 address);
virtual void write8(u32 address, u8 value); virtual void write8(u32 address, u8 value);
virtual void write32(u32 address, u32 value);
// register stuff // register stuff
virtual int getRegisterCategoryCount(); virtual int getRegisterCategoryCount();