Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Fix read/write commands to fp regs #290

Closed
wants to merge 10 commits into from

Conversation

fjricci
Copy link
Contributor

@fjricci fjricci commented Apr 20, 2016

No description provided.

@fjricci fjricci force-pushed the stmm_regs branch 5 times, most recently from eb5d65b to 0705f14 Compare April 22, 2016 20:06
@fjricci fjricci changed the title Fix read/write commands to st regs Fix read/write commands to fp regs Apr 22, 2016
@fjricci fjricci force-pushed the stmm_regs branch 2 times, most recently from e2e0932 to 1f7507e Compare May 10, 2016 18:32
@@ -103,9 +103,9 @@ struct CPUState64 {
SSEVector _sse[128];
};
SSEVector const &operator[](size_t index) const {
return _sse[index << 1];
return _sse[index << 2];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is valid regardless of the previous two commits, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@fjricci fjricci force-pushed the stmm_regs branch 2 times, most recently from 2c21798 to fee853f Compare May 10, 2016 20:22
@sas
Copy link
Contributor

sas commented May 10, 2016

Committed a few of this as e4a0fa1..01a9fc5.

state.x87.foseg = xfpregs.fpregs.fos;
state.x87.fooff = xfpregs.fpregs.foo;

uint8_t const *st_space =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto st_space = ...

@fjricci fjricci force-pushed the stmm_regs branch 2 times, most recently from 13a819c to ffdb60f Compare May 11, 2016 02:04
@sas sas self-assigned this May 11, 2016
@sas sas added the linux label May 11, 2016
@fjricci fjricci force-pushed the stmm_regs branch 2 times, most recently from 0868f85 to 063c714 Compare May 11, 2016 18:33
static inline void user_to_state32(ds2::Architecture::X86_64::CPUState32 &state,
user_fpregs_struct const &user) {
static inline void
xfpregs_to_state32(ds2::Architecture::X86_64::CPUState32 &state,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep the old name, user_to_state32. I think we just use "user" everywhere to describe the structure that comes from the thread's context.

@sas
Copy link
Contributor

sas commented May 16, 2016

I committed some of your patches in this branch as c04efd0..cf9a88a.

@fjricci fjricci force-pushed the stmm_regs branch 3 times, most recently from c553129 to c9c6bae Compare May 18, 2016 19:30
@sas
Copy link
Contributor

sas commented May 24, 2016

Committed all of this except for the refactors as de372ae..a29288b.

@fjricci
Copy link
Contributor Author

fjricci commented May 24, 2016

@sas will do the refactors in a non-gross way 😆

@fjricci fjricci closed this May 24, 2016
@fjricci fjricci deleted the stmm_regs branch May 24, 2016 18:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants