[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-4.1 5/7] tcg: Remove cpu_ld*_code_ra
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL for-4.1 5/7] tcg: Remove cpu_ld*_code_ra |
Date: |
Sun, 14 Jul 2019 11:12:47 +0000 |
These functions are not used, and are not usable in the
context of code generation, because we never have a helper
return address to pass in to them.
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
include/exec/cpu_ldst_useronly_template.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/exec/cpu_ldst_useronly_template.h
b/include/exec/cpu_ldst_useronly_template.h
index e65733f7e2..8c7a2c6cd7 100644
--- a/include/exec/cpu_ldst_useronly_template.h
+++ b/include/exec/cpu_ldst_useronly_template.h
@@ -72,6 +72,7 @@ glue(glue(cpu_ld, USUFFIX), MEMSUFFIX)(CPUArchState *env,
abi_ptr ptr)
return glue(glue(ld, USUFFIX), _p)(g2h(ptr));
}
+#ifndef CODE_ACCESS
static inline RES_TYPE
glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX), _ra)(CPUArchState *env,
abi_ptr ptr,
@@ -83,6 +84,7 @@ glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX),
_ra)(CPUArchState *env,
clear_helper_retaddr();
return ret;
}
+#endif
#if DATA_SIZE <= 2
static inline int
@@ -96,6 +98,7 @@ glue(glue(cpu_lds, SUFFIX), MEMSUFFIX)(CPUArchState *env,
abi_ptr ptr)
return glue(glue(lds, SUFFIX), _p)(g2h(ptr));
}
+#ifndef CODE_ACCESS
static inline int
glue(glue(glue(cpu_lds, SUFFIX), MEMSUFFIX), _ra)(CPUArchState *env,
abi_ptr ptr,
@@ -107,7 +110,8 @@ glue(glue(glue(cpu_lds, SUFFIX), MEMSUFFIX),
_ra)(CPUArchState *env,
clear_helper_retaddr();
return ret;
}
-#endif
+#endif /* CODE_ACCESS */
+#endif /* DATA_SIZE <= 2 */
#ifndef CODE_ACCESS
static inline void
--
2.17.1
- [Qemu-devel] [PULL for-4.1 0/7] tcg patch queue, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 1/7] tcg: Fix constant folding of INDEX_op_extract2_i32, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 3/7] include/qemu/atomic.h: Add signal_barrier, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 2/7] tcg/aarch64: Fix output of extract2 opcodes, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 5/7] tcg: Remove cpu_ld*_code_ra,
Richard Henderson <=
- [Qemu-devel] [PULL for-4.1 4/7] tcg: Introduce set/clear_helper_retaddr, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 6/7] tcg: Remove duplicate #if !defined(CODE_ACCESS), Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 7/7] tcg: Release mmap_lock on translation fault, Richard Henderson, 2019/07/14
- Re: [Qemu-devel] [PULL for-4.1 0/7] tcg patch queue, Peter Maydell, 2019/07/15