Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dynamic base address for 3ds #134

Merged
merged 1 commit into from Aug 31, 2017
Merged

Use dynamic base address for 3ds #134

merged 1 commit into from Aug 31, 2017

Conversation

yshui
Copy link

@yshui yshui commented Aug 29, 2017

To be honest, I have no idea of what I'm doing here.

This is a fix for #125. The increasing size of global variables in RetroArch codebase causes the BASE_ADDR to overlap with some of the variables, resulting in a crash.

I don't know if there's a reason why dynamic base is not used for 3ds. According to my tests everything seem to be working fine.

@yshui
Copy link
Author

yshui commented Aug 29, 2017

OK, I found the commit that made this change f72db18.

Seems the dynamic base is actually desired, but the author misunderstood what "DRC_CACHE_BASE" means....

@inactive123
Copy link

OK - I do agree that maybe it might be safest to put those variables back on heap instead of stack in RetroArch - since consoles typically have very small stack size, so stack size should definitely not be abused.

So, I think the best approach is that we merge this PR in addition to me doing something about the stack size increases in RA.

@inactive123 inactive123 merged commit 874706c into libretro:master Aug 31, 2017
@gingerbeardman
Copy link

1.6.7 still crashing for me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants