qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386/translate.c: Remove unused tcg_gen_lshift()
@ 2014-06-07 17:04 Peter Maydell
  2014-06-08 10:59 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2014-06-07 17:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, patches

The function tcg_gen_lshift() is unused; remove it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target-i386/translate.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/target-i386/translate.c b/target-i386/translate.c
index 3aa52eb..c02f7fd 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -1505,14 +1505,6 @@ static void gen_shift_rm_im(DisasContext *s, TCGMemOp ot, int op1, int op2,
     }
 }
 
-static inline void tcg_gen_lshift(TCGv ret, TCGv arg1, target_long arg2)
-{
-    if (arg2 >= 0)
-        tcg_gen_shli_tl(ret, arg1, arg2);
-    else
-        tcg_gen_shri_tl(ret, arg1, -arg2);
-}
-
 static void gen_rot_rm_T1(DisasContext *s, TCGMemOp ot, int op1, int is_right)
 {
     target_ulong mask = (ot == MO_64 ? 0x3f : 0x1f);
-- 
1.8.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-08 11:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-07 17:04 [Qemu-devel] [PATCH] target-i386/translate.c: Remove unused tcg_gen_lshift() Peter Maydell
2014-06-08 10:59 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).