mirror of
https://github.com/qemu/qemu.git
synced 2025-08-09 19:15:32 +00:00
target-i386: Define MMREG_UNION macro
This will simplify the definitions of ZMMReg and MMXReg. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
9253e1a792
commit
31d414d649
@ -725,23 +725,18 @@ typedef struct SegmentCache {
|
|||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
} SegmentCache;
|
} SegmentCache;
|
||||||
|
|
||||||
typedef union {
|
#define MMREG_UNION(bits) \
|
||||||
uint8_t _b[64];
|
union { \
|
||||||
uint16_t _w[32];
|
uint8_t _b[(bits)/8]; \
|
||||||
uint32_t _l[16];
|
uint16_t _w[(bits)/16]; \
|
||||||
uint64_t _q[8];
|
uint32_t _l[(bits)/32]; \
|
||||||
float32 _s[16];
|
uint64_t _q[(bits)/64]; \
|
||||||
float64 _d[8];
|
float32 _s[(bits)/32]; \
|
||||||
} ZMMReg;
|
float64 _d[(bits)/64]; \
|
||||||
|
}
|
||||||
|
|
||||||
typedef union {
|
typedef MMREG_UNION(512) ZMMReg;
|
||||||
uint8_t _b[8];
|
typedef MMREG_UNION(64) MMXReg;
|
||||||
uint16_t _w[4];
|
|
||||||
uint32_t _l[2];
|
|
||||||
uint64_t _q[1];
|
|
||||||
float32 _s[2];
|
|
||||||
float64 _d[1];
|
|
||||||
} MMXReg;
|
|
||||||
|
|
||||||
typedef struct BNDReg {
|
typedef struct BNDReg {
|
||||||
uint64_t lb;
|
uint64_t lb;
|
||||||
|
Loading…
Reference in New Issue
Block a user