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

Jit64: Make register caches not rely on the global jit variable #4535

Merged
merged 8 commits into from Jan 1, 2017

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Dec 21, 2016

Also includes preliminary cleanup that leads up to replacing the global usages

Each change should be relatively self-contained.

@BhaaLseN
Copy link
Member

LGTM

Keeps them separated from one another and makes it less annoying to find
member functions (which were previously spread out all over the place).
…icable

Any future changes to these register cache functions won't require everything that includes the register cache header to also be recompiled.
This was kind of a pointless function, considering the parameter wasn't
used at all, so the other Flush() function could have been just directly
used instead.
@lioncash
Copy link
Member Author

Rebased on top of master.

Also made a slight change to the last commit. Previously it would take the Jit64 instance by pointer, however I've changed it to be taken by reference as it doesn't make sense to allow passing nullptr as a context to the register caches.

m_emitter->MOVAPD(new_loc, m_regs[preg].location);
}

const X64Reg* FPURegCache::GetAllocationOrder(size_t* count)

This comment was marked as off-topic.

This comment was marked as off-topic.

@iwubcode
Copy link
Contributor

LGTM!

@lioncash lioncash merged commit b10a0de into dolphin-emu:master Jan 1, 2017
@lioncash lioncash deleted the regcache branch January 1, 2017 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants