Skip to content

Commit

Permalink
ppcmmu: Make dummy pages two pages.
Browse files Browse the repository at this point in the history
In case we need a write to span a page boundary.
  • Loading branch information
joevt authored and dingusdev committed Apr 24, 2024
1 parent 9a489d1 commit ad45ce8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpu/ppc/ppcmmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ AddressMapEntry last_write_area;
AddressMapEntry last_exec_area;
AddressMapEntry last_ptab_area;

/** Dummy pages for catching writes to physical read-only pages */
static std::array<uint64_t, 8192 / sizeof(uint64_t)> dummy_page;

/** 601-style block address translation. */
static BATResult mpc601_block_address_translation(uint32_t la)
{
Expand Down Expand Up @@ -359,9 +362,6 @@ uint32_t tlb_size_mask = TLB_SIZE - 1;
uint64_t UnmappedVal = -1ULL;
TLBEntry UnmappedMem = {TLB_INVALID_TAG, TLBFlags::PAGE_NOPHYS, 0, 0};

// Dummy page for catching writes to physical read-only pages
static std::array<uint64_t, 4096 / sizeof(uint64_t)> dummy_page;

uint8_t CurITLBMode = {0xFF}; // current ITLB mode
uint8_t CurDTLBMode = {0xFF}; // current DTLB mode

Expand Down

0 comments on commit ad45ce8

Please sign in to comment.