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>
This commit is contained in:
parent
029ad4bcf3
commit
fc4bde9025
@ -99,19 +99,6 @@ static const char *special_regnames[] =
|
|||||||
"sr16", "sr17", "sr18"
|
"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)
|
static inline void t_sync_flags(DisasContext *dc)
|
||||||
{
|
{
|
||||||
/* Synch the tb dependent flags between translator and runtime. */
|
/* Synch the tb dependent flags between translator and runtime. */
|
||||||
|
Loading…
Reference in New Issue
Block a user