"Implement register mirroring"
https://github.com/mupen64plus/mupen64plus-core/pull/1119

Index: src/device/rcp/ai/ai_controller.h
--- src/device/rcp/ai/ai_controller.h.orig
+++ src/device/rcp/ai/ai_controller.h
@@ -71,7 +71,7 @@ struct ai_controller
 
 static osal_inline uint32_t ai_reg(uint32_t address)
 {
-    return (address & 0xffff) >> 2;
+    return (address & 0x1f) >> 2;
 }
 
 void init_ai(struct ai_controller* ai,
