]> git.proxmox.com Git - mirror_qemu.git/commitdiff
accel/tcg: Inline dump_opcount_info() and remove it
authorBernhard Beschow <shentey@gmail.com>
Fri, 20 May 2022 18:01:08 +0000 (20:01 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Jun 2022 09:44:50 +0000 (11:44 +0200)
dump_opcount_info() is a one-line wrapper around tcg_dump_op_count()
which is also exported. So use the latter directly.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220520180109.8224-10-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
accel/tcg/cpu-exec.c
accel/tcg/translate-all.c
include/exec/cpu-all.h

index 7cbf9996b7ba0f5d9b47795376a4b52150dc239b..a565a3f8eccc48c78990cbe7decd778dd6da33c7 100644 (file)
@@ -1091,7 +1091,7 @@ HumanReadableText *qmp_x_query_opcount(Error **errp)
         return NULL;
     }
 
-    dump_opcount_info(buf);
+    tcg_dump_op_count(buf);
 
     return human_readable_text_from_str(buf);
 }
index 291034cb093211fdacd4b61b08d8ffd1fefc2e7e..8fd23a9d05f184349d1ea7af295abac143712f83 100644 (file)
@@ -2124,11 +2124,6 @@ void dump_exec_info(GString *buf)
     tcg_dump_info(buf);
 }
 
-void dump_opcount_info(GString *buf)
-{
-    tcg_dump_op_count(buf);
-}
-
 #else /* CONFIG_USER_ONLY */
 
 void cpu_interrupt(CPUState *cpu, int mask)
index 9a716be80d3975f6431a3cb569f2fb301696aacb..f5bda2c3caa78f2fd0ea44b97beb87edf7eda21a 100644 (file)
@@ -421,7 +421,6 @@ static inline bool tlb_hit(target_ulong tlb_addr, target_ulong addr)
 #ifdef CONFIG_TCG
 /* accel/tcg/translate-all.c */
 void dump_exec_info(GString *buf);
-void dump_opcount_info(GString *buf);
 #endif /* CONFIG_TCG */
 
 #endif /* !CONFIG_USER_ONLY */