diff options
author | Richard Henderson | 2020-11-02 17:52:14 +0100 |
---|---|---|
committer | Peter Maydell | 2020-11-02 17:52:14 +0100 |
commit | 0aa8e700a53b0aa7275ed747b8fa3acb61d35f2d (patch) | |
tree | 134c4b77fb3f642109eb130535cc5cd7a7e044b6 /target/arm/translate.c | |
parent | target/arm: Rename neon_load_reg32 to vfp_load_reg32 (diff) | |
download | qemu-0aa8e700a53b0aa7275ed747b8fa3acb61d35f2d.tar.gz qemu-0aa8e700a53b0aa7275ed747b8fa3acb61d35f2d.tar.xz qemu-0aa8e700a53b0aa7275ed747b8fa3acb61d35f2d.zip |
target/arm: Add read/write_neon_element64
Replace all uses of neon_load/store_reg64 within translate-neon.c.inc.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201030022618.785675-9-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate.c')
-rw-r--r-- | target/arm/translate.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/arm/translate.c b/target/arm/translate.c index 8491ab705b..4fb0a62200 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -1178,6 +1178,19 @@ static void read_neon_element32(TCGv_i32 dest, int reg, int ele, MemOp memop) } } +static void read_neon_element64(TCGv_i64 dest, int reg, int ele, MemOp memop) +{ + long off = neon_element_offset(reg, ele, memop); + + switch (memop) { + case MO_Q: + tcg_gen_ld_i64(dest, cpu_env, off); + break; + default: + g_assert_not_reached(); + } +} + static void write_neon_element32(TCGv_i32 src, int reg, int ele, MemOp memop) { long off = neon_element_offset(reg, ele, memop); @@ -1197,6 +1210,19 @@ static void write_neon_element32(TCGv_i32 src, int reg, int ele, MemOp memop) } } +static void write_neon_element64(TCGv_i64 src, int reg, int ele, MemOp memop) +{ + long off = neon_element_offset(reg, ele, memop); + + switch (memop) { + case MO_64: + tcg_gen_st_i64(src, cpu_env, off); + break; + default: + g_assert_not_reached(); + } +} + static TCGv_ptr vfp_reg_ptr(bool dp, int reg) { TCGv_ptr ret = tcg_temp_new_ptr(); |