添加一个inline
This commit is contained in:
parent
27570289db
commit
88a66937f3
@ -36,7 +36,7 @@ struct GPIO {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool IsReadable() const {
|
||||
bool ALWAYS_INLINE IsReadable() const {
|
||||
return allow_reads;
|
||||
}
|
||||
|
||||
|
@ -318,6 +318,9 @@ auto Bus::ReadWord(u32 address, int access) -> u32 {
|
||||
}
|
||||
|
||||
void Bus::WriteByte(u32 address, u8 value, int access) {
|
||||
// address == 0xe00'5555 && value == 0xaa --> flash
|
||||
// address >= 0xe00'0000 && address <= 0xe00'ffff --> sram
|
||||
// address >= 0x800'0000 && address <= 0xe00'0000 --> eeprom
|
||||
Write<u8>(address, access, value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user