diff mbox

[PULL,15/25] target-microblaze: Delete unused sign_extend() function

Message ID 1402416523-13212-16-git-send-email-mjt@msgid.tls.msk.ru
State Accepted
Commit fc4bde9025c07a2ef96d498f5d675d3ec044b00a
Headers show

Commit Message

Michael Tokarev June 10, 2014, 4:08 p.m. UTC
From: Peter Maydell <peter.maydell@linaro.org>

The sign_extend() function is unused; delete it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 target-microblaze/translate.c |   13 -------------
 1 file changed, 13 deletions(-)
diff mbox

Patch

diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index c422bdc..03ea158 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -99,19 +99,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.  */