qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/4] tcg: Remove unused parameter from tcg_target_ge


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 4/4] tcg: Remove unused parameter from tcg_target_get_call_iarg_regs_count
Date: Wed, 12 Sep 2012 22:44:38 +0200

Since commit 6a18ae2d2947532d5c26439548afa0481c4529f9,
'flags' is no longer used in tcg_target_get_call_iarg_regs_count.

Signed-off-by: Stefan Weil <address@hidden>
---
 tcg/tcg.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 53316f6..0f0a8d0 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -182,7 +182,7 @@ int gen_new_label(void)
 #include "tcg-target.c"
 
 /* Maximum number of register used for input function arguments. */
-static inline int tcg_target_get_call_iarg_regs_count(int flags)
+static inline int tcg_target_get_call_iarg_regs_count(void)
 {
     return ARRAY_SIZE(tcg_target_call_iarg_regs);
 }
@@ -1871,7 +1871,7 @@ static int tcg_reg_alloc_call(TCGContext *s, const 
TCGOpDef *def,
 
     flags = args[nb_oargs + nb_iargs];
 
-    nb_regs = tcg_target_get_call_iarg_regs_count(flags);
+    nb_regs = tcg_target_get_call_iarg_regs_count();
     if (nb_regs > nb_params)
         nb_regs = nb_params;
 
-- 
1.7.10




reply via email to

[Prev in Thread] Current Thread [Next in Thread]