pub struct Cpu {
pub regs: Regs,
pub pipeline: Pipeline,
}Expand description
The full ARMv3 core: register file, pipeline, and instruction execution.
Fields§
§regs: RegsThe register file (R0-R15, mode-banked, plus CPSR/SPSRs).
pipeline: PipelineThe 3-stage Fetch/Decode/Execute pipeline.
Implementations§
Source§impl Cpu
impl Cpu
Sourcepub fn power_on(&mut self, bus: &mut impl ArmBus)
pub fn power_on(&mut self, bus: &mut impl ArmBus)
Power on (or reset) the core (Mesen2 PowerOn): zero every register, enter Supervisor
mode with both interrupt lines masked, and prime the pipeline from address 0 (the ARM
reset vector). Unlike PowerOn(forReset=true), this does not preserve a cycle counter —
the board wrapper (not yet built) owns cycle-count bookkeeping, not the core itself.
Trait Implementations§
impl Copy for Cpu
Auto Trait Implementations§
impl Freeze for Cpu
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnsafeUnpin for Cpu
impl UnwindSafe for Cpu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more