target-microblaze: Delete unused sign_extend() function
PATCH 1/1 target-microblaze: Delete unused sign_extend() function
The sign_extend() function is unused; delete it.
Signed-off-by Peter Maydell <[email protected]>
---
We have sextract() for this these days anyway.
--- target-microblaze/translate.c | 13 ------------- 1 file changed, 13 deletions(-)
target-microblaze/translate.c +0 -13
@@ -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. */
Signature · 1 line
1.9.2
Quoted 1 line · Peter Maydell
The
sign_extend()function is unused; delete it.
Reviewed-by Edgar E. Iglesias <[email protected]>
Peter, feel free to push this straight in.
Thanks,
Edgar
Quoted 35 lines
Signed-off-by Peter Maydell <[email protected]>---
We havesextract()for this these days anyway.--- target-microblaze/translate.c | 13 ------------- 1 file changed, 13 deletions(-)target-microblaze/translate.c +0
-13@@ -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. */ Signature · 1 line
1.9.2
Michael Tokarev
AppliedApplied to -trivial, thanks!
/mjt