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

JIT: Fix caller-save registers on WIN64 #923

Merged
merged 1 commit into from Sep 3, 2014

Conversation

FioraAeterna
Copy link
Contributor

No description provided.

@FioraAeterna FioraAeterna changed the title JIT: Fix callee-save registers on WIN64 JIT: Fix caller-save registers on WIN64 Sep 1, 2014
@comex
Copy link
Contributor

comex commented Sep 1, 2014

lgtm

(1 << XMM0) | (1 << XMM1) | (1 << XMM2) | (1 << XMM3) | \
(1 << XMM4) | (1 << XMM5))
(1 << (XMM0+16)) | (1 << (XMM1+16)) | (1 << (XMM2+16)) | (1 << (XMM3+16)) | \
(1 << (XMM4+16)) | (1 << (XMM5+16)))

#else //64-bit Unix / OS X

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Sep 1, 2014

+16 is just more magic. Could we instead split that into two separate enums, and maybe do the same with the registers?

Thanks.

@FioraAeterna
Copy link
Contributor Author

I'm just sticking with how the current code works; refactoring it would be a much bigger patch, I think. There's already some (XMM0<<16) in other places in the code.

@delroth
Copy link
Member

delroth commented Sep 2, 2014

<< 16 or + 16?

:)

On Tue, Sep 2, 2014 at 11:13 AM, Fiora notifications@github.com wrote:

I'm just sticking with how the current code works; refactoring it would be
a much bigger patch, I think. There's already some (XMM0<<16) in other
places in the code.


Reply to this email directly or view it on GitHub
#923 (comment).

Pierre "delroth" Bourdon delroth@gmail.com
Software Engineer @ Zürich, Switzerland
http://code.delroth.net/

@FioraAeterna
Copy link
Contributor Author

Erm. +16. yes. xD

@lioncash
Copy link
Member

lioncash commented Sep 2, 2014

At the very least I guess a comment can be made explaining the meaning behind + 16. Is that OK, @delroth?

@delroth
Copy link
Member

delroth commented Sep 2, 2014

I don't like it, but I guess it's fine for the time being...

On Tue, Sep 2, 2014 at 3:59 PM, Lioncash notifications@github.com wrote:

At the very least I guess a comment can be made explaining the meaning
behind + 16. Is that OK, @delroth https://github.com/delroth?


Reply to this email directly or view it on GitHub
#923 (comment).

Pierre "delroth" Bourdon delroth@gmail.com
Software Engineer @ Zürich, Switzerland
http://code.delroth.net/

@lioncash
Copy link
Member

lioncash commented Sep 2, 2014

@delroth I do agree that an enum or variable constant should be used to represent it. However if it's interspersed like @FioraAeterna says, then I think it is out of scope for what this PR does.

@BhaaLseN
Copy link
Member

BhaaLseN commented Sep 2, 2014

Fine by me if we get a comment, and a follow-up PR :)

comex added a commit that referenced this pull request Sep 3, 2014
JIT: Fix caller-save registers on WIN64
@comex comex merged commit 64575d5 into dolphin-emu:master Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants