mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
Make address translation respect the CPU translation mode.
The PowerPC CPU has bits in MSR (DR and IR) which control whether addresses are translated. We should respect these instead of mixing physical addresses and translated addresses into the same address space. This is mostly mass-renaming calls to memory accesses APIs from places which expect address translation to use a different version from those which do not expect address translation. This does very little on its own, but it's the first step to a correct BAT implementation.
This commit is contained in:
parent
d9988ee9b5
commit
ac54c6a4e2
59 changed files with 816 additions and 617 deletions
|
@ -24,8 +24,8 @@ public:
|
|||
void *CreateView(s64 offset, size_t size, void *base = nullptr);
|
||||
void ReleaseView(void *view, size_t size);
|
||||
|
||||
// This only finds 1 GB in 32-bit
|
||||
static u8 *Find4GBBase();
|
||||
// This finds 1 GB in 32-bit, 16 GB in 64-bit.
|
||||
static u8 *FindMemoryBase();
|
||||
private:
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -44,7 +44,7 @@ enum {
|
|||
struct MemoryView
|
||||
{
|
||||
u8** out_ptr;
|
||||
u32 virtual_address;
|
||||
u64 virtual_address;
|
||||
u32 size;
|
||||
u32 flags;
|
||||
void* mapped_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue