Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Grarak committed Jan 14, 2025
1 parent 3a9404c commit 79aacd6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions src/core/memory/mmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ use regions::{IO_PORTS_OFFSET, MAIN_OFFSET, MAIN_REGION, SHARED_WRAM_OFFSET, V_M
use std::cell::UnsafeCell;
use std::cmp::max;
use std::ptr;
use std::sync::atomic::AtomicBool;
use std::sync::Condvar;
use crate::core::CpuType;

pub const MMU_PAGE_SHIFT: usize = 14;
pub const MMU_PAGE_SIZE: usize = 1 << MMU_PAGE_SHIFT;
Expand Down Expand Up @@ -461,3 +464,21 @@ impl Mmu for MmuArm7 {
}
}
}

struct MmuRemoveThread {
active: AtomicBool,
cpu: CpuType,
addr: u32,
region: MemRegion,
cv: Condvar,
}

struct Mmus {
thread: MmuRemoveThread,
mmu_arm9: MmuArm9,
mmu_arm7: MmuArm7,
}

impl Mmus {

}
4 changes: 2 additions & 2 deletions src/core/memory/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pub mod cartridge;
pub mod dma;
pub mod io_arm7;
mod io_arm7_lut;
pub mod io_arm9;
mod io_arm9_lut;
pub mod main;
pub mod mem;
pub mod mmu;
Expand All @@ -11,5 +13,3 @@ pub mod regions;
pub mod vram;
mod wifi;
pub mod wram;
mod io_arm9_lut;
mod io_arm7_lut;

0 comments on commit 79aacd6

Please sign in to comment.