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

Always clear memory when booting #3763

Merged
merged 1 commit into from
Apr 2, 2016

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Apr 1, 2016

Reading uninitalized memory is non-deterministic. We used to only clear the memory when using EmulatedBS2_GC or FifoPlayer, but we now do it during Memory::Init instead so it always gets done.

I'm not especially familiar with this part of the code, so I'm not sure if the change is correct.


This change is Reviewable

Reading uninitalized memory is non-deterministic. We used to only
clear the memory when using EmulatedBS2_GC or FifoPlayer, but we
now do it during Memory::Init instead so it always gets done.
@BhaaLseN
Copy link
Member

BhaaLseN commented Apr 1, 2016

Looks good(ish) to me, but I haven't checked all calling sites for Init; so I can't say if there are other places that still need a Clear call.

@JosJuice
Copy link
Member Author

JosJuice commented Apr 2, 2016

@delroth Is this okay to include in 5.0?

@delroth delroth added this to the Dolphin Release 5.0 milestone Apr 2, 2016
@delroth delroth merged commit 418b8c0 into dolphin-emu:master Apr 2, 2016
@JosJuice JosJuice deleted the boot-clear-memory branch April 2, 2016 11:03
@Sonicadvance1
Copy link
Contributor

I'm happy that you moved this out of the BS2 nonsense and in the actual memory subsystem. Thought it was dumb missing on the Wii side of things.

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