Received: from eggs.gnu.org ([2001:4830:134:3::10]:50479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDJs-000786-DJ for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDJr-0001W2-LV for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:06:36 -0400 From: Peter Maydell Date: Tue, 24 Jun 2014 00:06:34 +0100 Message-Id: <1403564794-15881-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-s390x: Remove unused ld_code6() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Alexander Graf , Richard Henderson The ld_code6() function is unused; remove it. Signed-off-by: Peter Maydell --- 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(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 8ca4824..e2a1d05 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -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) { -- 2.0.0