31 ContextNumber = 0x200,
37 //------------------------------------------------------------------------------
38 IMPLEMENTATION[sparc]:
40 PUBLIC static inline ALWAYS_INLINE
42 Mem_unit::make_coherent_to_pou(void const *)
45 //------------------------------------------------------------------------------
46 IMPLEMENTATION[sparc && !mp]:
50 * Note: The 'tlbia' instruction is not implemented in G2 cores (causes a
51 * program exception). Therefore, we use 'tlbie' by iterating through EA
52 * bits [15-19] (see: G2 manual)
60 /** Flush page at virtual address
64 Mem_unit::tlb_flush(Address addr)
83 Mem_unit::context(Mword number)
85 Proc::write_alternative<Mmu::Regs>(Mmu::ContextNumber, number);
90 Mem_unit::context_table(Address table)
92 Proc::write_alternative<Mmu::Regs>(Mmu::ContextTable, (table >> 4) & ~0x3);
97 Mem_unit::mmu_enable()
99 Mword r = Proc::read_alternative<Mmu::Regs>(Mmu::Control);
101 Proc::write_alternative<Mmu::Regs>(Mmu::Control, r);