[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/13] target/arm: Move vfp_reg_ptr() to translate-neon.c.inc
From: |
Peter Maydell |
Subject: |
[PATCH 09/13] target/arm: Move vfp_reg_ptr() to translate-neon.c.inc |
Date: |
Tue, 13 Apr 2021 17:07:55 +0100 |
The function vfp_reg_ptr() is used only in translate-neon.c.inc;
move it there.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/translate.c | 7 -------
target/arm/translate-neon.c.inc | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/target/arm/translate.c b/target/arm/translate.c
index 2ed02df05e0..5eece97584d 100644
--- a/target/arm/translate.c
+++ b/target/arm/translate.c
@@ -1158,13 +1158,6 @@ void write_neon_element64(TCGv_i64 src, int reg, int
ele, MemOp memop)
}
}
-static TCGv_ptr vfp_reg_ptr(bool dp, int reg)
-{
- TCGv_ptr ret = tcg_temp_new_ptr();
- tcg_gen_addi_ptr(ret, cpu_env, vfp_reg_offset(dp, reg));
- return ret;
-}
-
#define ARM_CP_RW_BIT (1 << 20)
/* Include the Neon decoder */
diff --git a/target/arm/translate-neon.c.inc b/target/arm/translate-neon.c.inc
index f6c68e30ab2..c6f8bc259a1 100644
--- a/target/arm/translate-neon.c.inc
+++ b/target/arm/translate-neon.c.inc
@@ -60,6 +60,13 @@ static inline int neon_3same_fp_size(DisasContext *s, int x)
#include "decode-neon-ls.c.inc"
#include "decode-neon-shared.c.inc"
+static TCGv_ptr vfp_reg_ptr(bool dp, int reg)
+{
+ TCGv_ptr ret = tcg_temp_new_ptr();
+ tcg_gen_addi_ptr(ret, cpu_env, vfp_reg_offset(dp, reg));
+ return ret;
+}
+
static void neon_load_element(TCGv_i32 var, int reg, int ele, MemOp mop)
{
long offset = neon_element_offset(reg, ele, mop & MO_SIZE);
--
2.20.1
- [PATCH 04/13] target/arm: Split m-nocp trans functions into their own file, (continued)
- [PATCH 04/13] target/arm: Split m-nocp trans functions into their own file, Peter Maydell, 2021/04/13
- [PATCH 06/13] target/arm: Move vfp_{load, store}_reg{32, 64} to translate-vfp.c.inc, Peter Maydell, 2021/04/13
- [PATCH 07/13] target/arm: Make functions used by translate-vfp global, Peter Maydell, 2021/04/13
- [PATCH 10/13] target/arm: Delete unused typedef, Peter Maydell, 2021/04/13
- [PATCH 09/13] target/arm: Move vfp_reg_ptr() to translate-neon.c.inc,
Peter Maydell <=
- [PATCH 08/13] target/arm: Make translate-vfp.c.inc its own compilation unit, Peter Maydell, 2021/04/13
- [PATCH 11/13] target/arm: Move NeonGenThreeOpEnvFn typedef to translate.h, Peter Maydell, 2021/04/13
- [PATCH 13/13] target/arm: Make translate-neon.c.inc its own compilation unit, Peter Maydell, 2021/04/13