Views: 6,702,796 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-29-24 09:40 AM
Guest:

0 users reading emulating memory protection | 1 bot

Main - Development - emulating memory protection Hide post layouts | New reply


should this be in release builds?
yes
100.0% (6)
no
0.0% (0)
don't care
0.0% (0)
Multiple voting is not allowed. Changing your vote is allowed. 6 users have voted so far.

Arisotura
Posted on 05-12-21 02:21 PM Link | #3712
basically

memory protection is the fact that on the DS, when trying to access a protected memory region (for example, trying to read from NULL), you get an exception (data abort, or prefetch abort for code).

this means squat for normal, well-functioning games.

however:

it means certain types of game crashes (glitches etc) may be emulated correctly.

it means crashes in homebrews would trigger the libnds exception handler, which would help homebrew devs.


melonDS already has most of the required PU emulation in place. emulating memory protection is simply matter of adding the check at the right places.

the check has a small performance hit (hardly noticeable here).

adding a 'perform PU checks' variable would have a similar performance hit.

using separate function pointers would allow disabling it with no performance cost, but would make the code less elegant.


so, what do you think?

____________________
Kuribo64

Saizo7
Posted on 05-12-21 05:48 PM Link | #3715
[image]

Wifall
Posted on 05-15-21 02:27 AM Link | #3725
I totally think this would be neat, already faced problems regarding a homebrews not loading on melonDS. This also would help people that depend on game specific quirks(like RNG abuse in Pokémon games). However, this would need to be option present in the hud to make users able to enable or disable it. Also, most DS functions are intertwined, this is important to note since the feature could potentially fix or break some specific games in some specific cases. When SRAM was added, for example, it mostly fixed a lot of issues in local multiplayer (Ni-Fi) emulation.

poudink
Posted on 05-15-21 04:47 PM (rev. 2 of 05-15-21 04:48 PM) Link | #3728
I'm pretty sure the only thing this would do is emulate crashes. I just want it because it'd be useful for romhack developement. Have had a few instances of SM64DS mods working on emulators but crashing on DS.

____________________
Nothing to say, so jadnjkfmnjamnfjkldnajfnjkanfjdksan jsdnvj m.

SSUPII
Posted on 05-19-21 05:19 PM Link | #3745
I don't think it's worth the performance if then it would create something messy


Main - Development - emulating memory protection Hide post layouts | New reply

Page rendered in 0.027 seconds. (2048KB of memory used)
MySQL - queries: 31, rows: 90/90, time: 0.015 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.