target-s390x: Remove unused ld_code6() function
PATCH 1/1 target-s390x: Remove unused ld_code6() function
The ld_code6() function is unused; remove it.
Signed-off-by Peter Maydell <[email protected]>
---
We could use this for loads of 6-byte insns, but that would imply a pointless reload of the first 2 bytes, which is presumably why this function isn't actually used.
--- target-s390x/translate.c | 5 ----- 1 file changed, 5 deletions(-)
target-s390x/translate.c +0 -5
@@ -264,11 +264,6 @@ static inline uint64_t ld_code4(CPUS390XState *env, uint64_t pc)return (uint64_t )(uint32_t )cpu_ldl_code (env, pc); } -static inline uint64_t ld_code6 (CPUS390XState *env,uint64_t pc) -{ -return (ld_code2 (env, pc) <<32 ) |ld_code4 (env, pc +2 ); -} -static int get_mem_index (DisasContext *s) {switch (s->tb->flags &FLAG_MASK_ASC ) {
Signature · 1 line
2.0.0
Quoted 7 lines · Peter Maydell
The
ld_code6()function is unused; remove it.Signed-off-by Peter Maydell <[email protected]>---
We could use this for loads of 6-byte insns, but that would imply a pointless reload of the first 2 bytes, which is presumably why this function isn't actually used.
Exactly so.
Reviewed-by Richard Henderson <[email protected]>
r~