aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2020-10-07 17:00:36 +0100
committerAlex Bennée <alex.bennee@linaro.org>2020-10-09 17:27:55 +0100
commit27d891bca9267e18e09540ae62d2096821b103c1 (patch)
tree3b949eedeb72c182d3478e994020c14012925c98 /contrib
parentb31371004f46e46235dff1f4f854bbd5ba774879 (diff)
plugin: Fixes compiling errors on msys2/mingw
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20201001163429.1348-3-luoyonggang@gmail.com> Message-Id: <20201007160038.26953-21-alex.bennee@linaro.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/plugins/hotblocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/hotblocks.c b/contrib/plugins/hotblocks.c
index 3942a2ca54..37435a3fc7 100644
--- a/contrib/plugins/hotblocks.c
+++ b/contrib/plugins/hotblocks.c
@@ -102,7 +102,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
{
ExecCount *cnt;
uint64_t pc = qemu_plugin_tb_vaddr(tb);
- unsigned long insns = qemu_plugin_tb_n_insns(tb);
+ size_t insns = qemu_plugin_tb_n_insns(tb);
uint64_t hash = pc ^ insns;
g_mutex_lock(&lock);