Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

forgot to trace IPC r/w

Layle6b7fa633ad89
diff --git a/crates/gecko/src/hollywood/ipc.rs b/crates/gecko/src/hollywood/ipc.rs
index 714bd4d..5a2cee0 100644
--- a/crates/gecko/src/hollywood/ipc.rs
+++ b/crates/gecko/src/hollywood/ipc.rs
@@ -1,11 +1,18 @@
use crate::system::{System, SystemId};
#[inline(always)]
-pub fn ipc_read<const SYSTEM: SystemId>(_sys: &mut System<SYSTEM>, _addr: u32, _size: u32) -> Option<u32> {
+pub fn ipc_read<const SYSTEM: SystemId>(_sys: &mut System<SYSTEM>, addr: u32, size: u32) -> Option<u32> {
+ tracing::error!("unhandled IPC read at {:#010X} (size {})", addr, size);
Some(0)
}
#[inline(always)]
-pub fn ipc_write<const SYSTEM: SystemId>(_sys: &mut System<SYSTEM>, _addr: u32, _size: u32, _val: u32) -> bool {
+pub fn ipc_write<const SYSTEM: SystemId>(_sys: &mut System<SYSTEM>, addr: u32, size: u32, val: u32) -> bool {
+ tracing::error!(
+ "unhandled IPC write at {:#010X} (size {}, value {:#010X})",
+ addr,
+ size,
+ val
+ );
true
}