[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 11/39] target/i386: introduce gen_(ld, st)d_e
From: |
Jan Bobek |
Subject: |
[Qemu-devel] [RFC PATCH v2 11/39] target/i386: introduce gen_(ld, st)d_env_A0 |
Date: |
Sat, 10 Aug 2019 00:12:27 -0400 |
Similar in spirit to the already present gen_(ld,st)(q,o)_env_A0, it
will prove useful in later commits for smaller-sized vector loads.
Signed-off-by: Jan Bobek <address@hidden>
---
target/i386/translate.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/target/i386/translate.c b/target/i386/translate.c
index c5ec309fe2..258351fce3 100644
--- a/target/i386/translate.c
+++ b/target/i386/translate.c
@@ -2652,6 +2652,18 @@ static void gen_jmp(DisasContext *s, target_ulong eip)
gen_jmp_tb(s, eip, 0);
}
+static inline void gen_ldd_env_A0(DisasContext *s, int offset)
+{
+ tcg_gen_qemu_ld_i32(s->tmp2_i32, s->A0, s->mem_index, MO_LEUL);
+ tcg_gen_st_i32(s->tmp2_i32, cpu_env, offset);
+}
+
+static inline void gen_std_env_A0(DisasContext *s, int offset)
+{
+ tcg_gen_ld_i32(s->tmp2_i32, cpu_env, offset);
+ tcg_gen_qemu_st_i32(s->tmp2_i32, s->A0, s->mem_index, MO_LEUL);
+}
+
static inline void gen_ldq_env_A0(DisasContext *s, int offset)
{
tcg_gen_qemu_ld_i64(s->tmp1_i64, s->A0, s->mem_index, MO_LEQ);
--
2.20.1
- [Qemu-devel] [RFC PATCH v2 08/39] target/i386: make variable b1 const, (continued)
- [Qemu-devel] [RFC PATCH v2 08/39] target/i386: make variable b1 const, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 06/39] target/i386: Simplify gen_exception arguments, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 09/39] target/i386: make variable is_xmm const, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 10/39] target/i386: add vector register file alignment constraints, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 04/39] target/i386: use dflag from DisasContext, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 07/39] target/i386: use pc_start from DisasContext, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 11/39] target/i386: introduce gen_(ld, st)d_env_A0,
Jan Bobek <=
- [Qemu-devel] [RFC PATCH v2 13/39] target/i386: disable unused function warning temporarily, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 14/39] target/i386: introduce mnemonic aliases for several gvec operations, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 12/39] target/i386: introduce gen_sse_ng, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 15/39] target/i386: introduce function ck_cpuid, Jan Bobek, 2019/08/10
- [Qemu-devel] [RFC PATCH v2 16/39] target/i386: introduce instruction operand infrastructure, Jan Bobek, 2019/08/10