HW: Pass System to MMIO handlers.

This commit is contained in:
Admiral H. Curtiss 2022-10-14 02:17:09 +02:00
commit 0a6fdb9c13
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
17 changed files with 215 additions and 199 deletions

View file

@ -121,12 +121,12 @@ TEST_F(MappingTest, ReadWriteComplex)
{
bool read_called = false, write_called = false;
m_mapping->Register(0x0C001234, MMIO::ComplexRead<u8>([&read_called](u32 addr) {
m_mapping->Register(0x0C001234, MMIO::ComplexRead<u8>([&read_called](Core::System&, u32 addr) {
EXPECT_EQ(0x0C001234u, addr);
read_called = true;
return 0x12;
}),
MMIO::ComplexWrite<u8>([&write_called](u32 addr, u8 val) {
MMIO::ComplexWrite<u8>([&write_called](Core::System&, u32 addr, u8 val) {
EXPECT_EQ(0x0C001234u, addr);
EXPECT_EQ(0x34, val);
write_called = true;