aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2022-05-20 20:01:08 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-06-11 23:50:35 +0200
commitea7c4527832ebe11e5f9349489e6c2784a27db69 (patch)
tree03cd89fd49047cc5396320e0c711b5ac3fa9b46d
parentc304d11f45777eba014c394e09f8a9aacf2a928d (diff)
downloadqemu-ea7c4527832ebe11e5f9349489e6c2784a27db69.zip
qemu-ea7c4527832ebe11e5f9349489e6c2784a27db69.tar.gz
qemu-ea7c4527832ebe11e5f9349489e6c2784a27db69.tar.bz2
accel/tcg: Inline dump_opcount_info() and remove it
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>
-rw-r--r--accel/tcg/cpu-exec.c2
-rw-r--r--accel/tcg/translate-all.c5
-rw-r--r--include/exec/cpu-all.h1
3 files changed, 1 insertions, 7 deletions
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 7cbf999..a565a3f 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -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);
}
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index 291034c..8fd23a9 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -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)
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index 9a716be..f5bda2c 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -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 */