diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-06-03 18:59:21 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-06-10 19:39:34 +0400 |
commit | fc4bde9025c07a2ef96d498f5d675d3ec044b00a (patch) | |
tree | e849c6986bcf25c9461431d1015657ee50dae064 /target-microblaze/translate.c | |
parent | 029ad4bcf31384783dce9896b2fc5349d9c13a9f (diff) |
target-microblaze: Delete unused sign_extend() function
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>
Diffstat (limited to 'target-microblaze/translate.c')
-rw-r--r-- | target-microblaze/translate.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index c422bdc718..03ea15803b 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. */ |