hw/gpu: pass in memory reference

This commit is contained in:
Weiyi Wang 2018-11-21 11:53:10 -05:00
parent ec01975549
commit cfee59c6db
5 changed files with 17 additions and 7 deletions

View file

@ -86,9 +86,9 @@ template void Write<u8>(u32 addr, const u8 data);
void Update() {}
/// Initialize hardware
void Init() {
void Init(Memory::MemorySystem& memory) {
AES::InitKeys();
GPU::Init();
GPU::Init(memory);
LCD::Init();
LOG_DEBUG(HW, "initialized OK");
}