RIP-Comm / clementine

Gameboy Advance emulator.
MIT License
49 stars 13 forks source link

Avoid having `Arc<Mutex<Bus>>` inside `Arm7tdmi` #207

Closed AlessioC31 closed 1 year ago

AlessioC31 commented 1 year ago

The main idea of this change is to avoid having Arc<Mutex<Bus>> inside Arm7tdmi and have just a Bus instead. Having an ArcMutex it was causing me some issues while working on interrupts implementation. Plus it's always been something I was not 100% sure about. I changed the Gba logic to hold only a reference to the cpu instead of both cpu and bus.