Comments (4)
The way the emulator handles memory access (using VAddrs to control hardware access) is flawed, so I think that's where this inconsistency comes from. The page in 3dbrew has the ranges overlapping too, but note how it says that these mappings depend on the exheader. So fact is that different processes will have different things mapped in these addresses. We can't really resolve this unless we move to a proper virtual memory scheme, I think. For now we can probably just chop off the I/O range, since we shouldn't be using it directly.
from citra.
Yeah, as @yuriks said, our way of dealing with memory access is completely broken.
As it stands, our internal memory representation is based on virtual memory - hence we have things like the GSP memory as the "fundamental" objects representing FCRAM internally. All accesses to physical addresses first need to be reverse-translated to virtual addresses, and just hope that there are no clashes going on. This is critical because the addresses submitted in GPU command lists are physical ones.
Instead of the current implementation, we should IMO store physical memory regions internally, and implement a dummy MMU miming a memory layout like http://3dbrew.org/wiki/Virtual_address_mapping_FW0B (or some more recent FW version) to translate physical to virtual addresses.
from citra.
Small correction: The FW0B virtual address mapping of course is kernel address space, while we would rather want to hardcode the NATIVE_FIRM userland memory layout as described on http://3dbrew.org/wiki/Memory_layout#ARM11_User-land_memory_regions for now.
from citra.
This isn't an issue anymore considering this code was rewritten a while ago.
from citra.
Related Issues (20)
- not possible to save progress in New Art Academy
- G-Sync causes extreme flicker on all games
- Can't configure L and R in Mac OS HOT 2
- Camera image not detected on Linux HOT 2
- Volume slider not synchronized with per game value
- Resident Evil Mercenaries 3D Crash When red barrels explode HOT 1
- [Android] Phoenix Wright: Ace Attorney - Dual Destinies – May occasionally experience crashes during the Capcom Animating Logo Intro
- Key repetitions on Windows count as multiple inputs
- Linux build fails with "undeclared identifier 'Frontend'"
- [Bug] Sakura Samurai: Art of the Sword - Black Area Background HOT 4
- [Bug] Face Raiders (New 3DS Version) Crash HOT 3
- Project MIRAI DX - crashes with the song "Nice to Meet You, Mr Earthling" HOT 3
- The emulator simply restarts my phone. HOT 1
- Gyro in rotated screen mode is funky
- Linking a game's compatibility rating to different regional IDs (NTSC to PAL and vice versa)
- Check that the driver supports "shaderSampledImageArrayDynamicIndexing", before using it (Raspberry Pi 4/5 (v3dv)) HOT 4
- [OpenGL] Pokemon XY: Outlines don't render in the overworld HOT 5
- sanitize_mul is inefficient HOT 1
- sanitize_mul is inefficient HOT 2
- [Android/Mali] Lego The Hobbit: Vertex explosions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citra.