Skip to content

Commit

Permalink
target-i386: Use a _q array on MMXReg too
Browse files Browse the repository at this point in the history
Make MMXReg use the same field names used on XMMReg, so we can
try to reuse macros and other code later.

Signed-off-by: Eduardo Habkost <[email protected]>
  • Loading branch information
ehabkost committed Jan 21, 2016
1 parent 8362547 commit 9618f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target-i386/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ typedef union {
uint16_t _w[4];
uint32_t _l[2];
float32 _s[2];
uint64_t q;
uint64_t _q[1];
} MMXReg;

typedef struct BNDReg {
Expand Down Expand Up @@ -777,7 +777,7 @@ typedef struct BNDCSReg {
#define MMX_L(n) _l[n]
#define MMX_S(n) _s[n]
#endif
#define MMX_Q(n) q
#define MMX_Q(n) _q[n]

typedef union {
floatx80 d __attribute__((aligned(16)));
Expand Down

0 comments on commit 9618f40

Please sign in to comment.