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

JitCache: Support for VMEM + MSR bits #4095

Merged
merged 5 commits into from
Aug 6, 2016

Conversation

degasus
Copy link
Member

@degasus degasus commented Aug 6, 2016

This is mostly a split of PR #1882 and a recreation of PR #4004. Only the last commit is touched at all.

This PR applies the JitCache changes required for dynamic bats:

It creates a second level cache based on the physical memory address to handle memory mirroring in an accurate way.
With this second level cache, we're able to use a bigger state as index. Here MSR.DR and MSR.IR are used. So address translation is known at compile time. This will be used later.
It also implements block unlinking. If a block is unlinked now, it is assured that we won't call this block any more. This is checked by INT3() within the jit64.


This change is Reviewable

magumagu and others added 5 commits August 6, 2016 11:41
Specifically, don't make any assumptions about what effective addresses
are used for code, and correctly handle changes to MSR.DR/MSR.IR.

(Split off from dynamic-bat.)
Should be straightforward.  Maybe useful for the purpose of testing.
This ID is reserved for invalid blocks. So this block can't be invalidated.
@eddiebrook
Copy link

Hi, this fix something for android?

@degasus
Copy link
Member Author

degasus commented Aug 6, 2016

@eddiebrook: No, it's not suposed to do so.

@eddiebrook
Copy link

Oh i see, thanks for fast response.

@JMC47
Copy link
Contributor

JMC47 commented Aug 6, 2016

Fixes the crashes in Harry Potter and Mario Tennis that were caused by the previous PR.

@phire
Copy link
Member

phire commented Aug 6, 2016

Oh, was that the bug?

LGTM

@degasus degasus merged commit 10a81bf into dolphin-emu:master Aug 6, 2016
@psennermann
Copy link

Wanted to report that on my system (but also for other people too according to the forum), this commit causes a 5-6% speed slowdown.

Tested on Win 10 - Intel e8600 - Geforce gtx950

@PatrickFerry PatrickFerry mentioned this pull request Aug 20, 2016
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants