From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrszd-0004Bu-Jq for qemu-devel@nongnu.org; Tue, 03 Jun 2014 13:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wrszc-0005Kz-Pd for qemu-devel@nongnu.org; Tue, 03 Jun 2014 13:59:25 -0400 From: Peter Maydell Date: Tue, 3 Jun 2014 18:59:21 +0100 Message-Id: <1401818361-1581-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-microblaze: Delete unused sign_extend() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, "Edgar E. Iglesias" , patches@linaro.org The sign_extend() function is unused; delete it. Signed-off-by: Peter Maydell --- We have sextract() for this these days anyway. --- target-microblaze/translate.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 488df2d..50c214b 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -98,19 +98,6 @@ static const char *special_regnames[] = "sr16", "sr17", "sr18" }; -/* Sign extend at translation time. */ -static inline int sign_extend(unsigned int val, unsigned int width) -{ - int sval; - - /* LSL. */ - val <<= 31 - width; - sval = val; - /* ASR. */ - sval >>= 31 - width; - return sval; -} - static inline void t_sync_flags(DisasContext *dc) { /* Synch the tb dependent flags between translator and runtime. */ -- 1.9.2