[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 35/39] target/i386: introduce UdqMq operand
From: |
Jan Bobek |
Subject: |
[Qemu-devel] [RFC PATCH v2 35/39] target/i386: introduce UdqMq operand |
Date: |
Sat, 10 Aug 2019 00:12:51 -0400 |
The MOVHLPS instruction has a special operand: it reads the high
quadword of the source operand (hence it requires the full
double-quadword width), but if the operand is indirect, only 64-bits
are read from memory. Introduce UdqMq operand to address this case.
Signed-off-by: Jan Bobek <address@hidden>
---
target/i386/translate.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/i386/translate.c b/target/i386/translate.c
index 97614e5941..5802b324f0 100644
--- a/target/i386/translate.c
+++ b/target/i386/translate.c
@@ -4876,6 +4876,11 @@ INSNOP_LDST(UqMq, Uq, Mq, offsetof(CPUX86State, xmm_t0),
gen_ldq_env_A0(s, reg + offsetof(ZMMReg, ZMM_Q(0)))),
(assert(ptr == s->A0),
gen_stq_env_A0(s, reg + offsetof(ZMMReg, ZMM_Q(0)))))
+INSNOP_LDST(UdqMq, Udq, Mq, offsetof(CPUX86State, xmm_t0),
+ (assert(ptr == s->A0),
+ gen_ldq_env_A0(s, reg + offsetof(ZMMReg, ZMM_Q(0)))),
+ (assert(ptr == s->A0),
+ gen_stq_env_A0(s, reg + offsetof(ZMMReg, ZMM_Q(0)))))
INSNOP_LDST(UdqMdq, Udq, Mdq, offsetof(CPUX86State, xmm_t0),
(assert(ptr == s->A0), gen_ldo_env_A0(s, reg)),
(assert(ptr == s->A0), gen_sto_env_A0(s, reg)))
--
2.20.1
- Re: [Qemu-devel] [RFC PATCH v2 23/39] target/i386: introduce instruction translator macros, (continued)
- [Qemu-devel] [RFC PATCH v2 26/39] target/i386: introduce G*, R*, E* (general register) operands, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 27/39] target/i386: introduce RdMw operand, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 29/39] target/i386: introduce helper-based code generator macros, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 28/39] target/i386: introduce P*, N*, Q* (MMX) operands, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 30/39] target/i386: introduce gvec-based code generator macros, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 31/39] target/i386: introduce MMX translators, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 32/39] target/i386: introduce MMX code generators, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 33/39] target/i386: introduce MMX instructions to insn.h, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 34/39] target/i386: introduce V*, U*, W* (SSE/AVX) operands, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 35/39] target/i386: introduce UdqMq operand,
Jan Bobek <=
- [Qemu-devel] [RFC PATCH v2 36/39] target/i386: introduce SSE translators, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 39/39] target/i386: introduce memory-pointer operand read/write workarounds, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 37/39] target/i386: introduce SSE code generators, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 38/39] target/i386: introduce SSE instructions to insn.h, Jan Bobek, 2019/08/10
- Re: [Qemu-devel] [RFC PATCH v2 00/39] rewrite MMX/SSE instruction translation, no-reply, 2019/08/10
- Re: [Qemu-devel] [RFC PATCH v2 00/39] rewrite MMX/SSE instruction translation, Richard Henderson, 2019/08/10