mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
3DNow! instruction set emulation
(Michael Tross) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4180 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
34c6f05032
commit
a35f3ec76b
4 changed files with 246 additions and 10 deletions
|
@ -428,8 +428,9 @@ typedef union {
|
|||
|
||||
typedef union {
|
||||
uint8_t _b[8];
|
||||
uint16_t _w[2];
|
||||
uint32_t _l[1];
|
||||
uint16_t _w[4];
|
||||
uint32_t _l[2];
|
||||
float32 _s[2];
|
||||
uint64_t q;
|
||||
} MMXReg;
|
||||
|
||||
|
@ -444,6 +445,7 @@ typedef union {
|
|||
#define MMX_B(n) _b[7 - (n)]
|
||||
#define MMX_W(n) _w[3 - (n)]
|
||||
#define MMX_L(n) _l[1 - (n)]
|
||||
#define MMX_S(n) _s[1 - (n)]
|
||||
#else
|
||||
#define XMM_B(n) _b[n]
|
||||
#define XMM_W(n) _w[n]
|
||||
|
@ -455,6 +457,7 @@ typedef union {
|
|||
#define MMX_B(n) _b[n]
|
||||
#define MMX_W(n) _w[n]
|
||||
#define MMX_L(n) _l[n]
|
||||
#define MMX_S(n) _s[n]
|
||||
#endif
|
||||
#define MMX_Q(n) q
|
||||
|
||||
|
@ -520,6 +523,7 @@ typedef struct CPUX86State {
|
|||
int64_t i64;
|
||||
} fp_convert;
|
||||
|
||||
float_status mmx_status; /* for 3DNow! float ops */
|
||||
float_status sse_status;
|
||||
uint32_t mxcsr;
|
||||
XMMReg xmm_regs[CPU_NB_REGS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue