mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
paper mario fixes
This commit is contained in:
+3
-2
@@ -122,8 +122,9 @@ pub fn get_handler(address: u32) -> PiHandler {
|
||||
};
|
||||
if address >= device::memory::MM_CART_ROM as u32 {
|
||||
if address >= device::memory::MM_DOM1_ADDR3 as u32 {
|
||||
panic!("unimplemented handler")
|
||||
//RW(cart, cart_dom3);
|
||||
// this should result in all 0's being read/written
|
||||
handler.read = device::cart_rom::dma_read;
|
||||
handler.write = device::cart_rom::dma_write;
|
||||
} else {
|
||||
handler.read = device::cart_rom::dma_read;
|
||||
handler.write = device::cart_rom::dma_write;
|
||||
|
||||
+3
-1
@@ -238,9 +238,11 @@ pub fn tlb_map(device: &mut device::Device, index: u64) {
|
||||
|
||||
pub fn get_physical_address(
|
||||
device: &mut device::Device,
|
||||
address: u64,
|
||||
mut address: u64,
|
||||
access_type: device::memory::AccessType,
|
||||
) -> (u64, bool, bool) {
|
||||
address &= 0xffffffff;
|
||||
|
||||
if access_type == device::memory::AccessType::Write {
|
||||
if device.cpu.cop0.tlb_lut_w[(address >> 12) as usize].address != 0 {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user