From nobody Mon Nov 17 01:24:55 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1602261940; cv=none; d=zohomail.com; s=zohoarc; b=lEtK3iprwKhvKjhIVKWZmZPT4HtDa0OmnwDi5LNiR61fx0T7ysV3W8TRstBnDhi3mDHi7aP9eHgxRQ5K8pzBN+UXn4/iIYxDGY3F94vErbvstZQj+yFH/MLbppCWdy0gaqc6/HrGAVBDvjj/jHScfwSOtdzC3lHrswNT9mUR/mA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602261940; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7hehInkKQivK5jFvcBnQIy+vpL6uJMeHgLNPrr9WBHA=; b=ltH4HHzLKgT4TG9jRR2t3cOkFD7BQanjyxKOrRlY2Nm3ARYl872CnWhBzLjMz+AQVw1123NTmBvAuYR+TnIwc6S+4KZT1xaFaY3l7PHTokRZannDlAON2bj5eVW9fCfxL7eP3bfcbjySnDWEHedbUZHxUId2WTB339LDrqZ+kik= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602261940120506.5684843743102; Fri, 9 Oct 2020 09:45:40 -0700 (PDT) Received: from localhost ([::1]:40298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQvWU-00020s-Ki for importer@patchew.org; Fri, 09 Oct 2020 12:45:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQvRC-00034q-Qw for qemu-devel@nongnu.org; Fri, 09 Oct 2020 12:40:10 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:33714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQvRB-0006HR-3A for qemu-devel@nongnu.org; Fri, 09 Oct 2020 12:40:10 -0400 Received: by mail-wr1-x435.google.com with SMTP id m6so10980644wrn.0 for ; Fri, 09 Oct 2020 09:40:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p21sm12676556wmc.28.2020.10.09.09.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 09:40:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DD07C1FFAA; Fri, 9 Oct 2020 17:31:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7hehInkKQivK5jFvcBnQIy+vpL6uJMeHgLNPrr9WBHA=; b=slhjeBkpyRRdsfiOmXlKp7mLTtMtXI4tPE6qF16agAiTRQnL/Kr8TVxF/wDf5Dg0W9 w3H6iwViDtXCOzCS78QVm7I5w9kQPo9Viti9tpEOXfaj3j2VRGvJSK3TYFClUJbPfZ1B WTeOHrx9zrWFwMcqnhgBhiw73Gj2dbFcMoaDRNgtu07jhvBU4tW+8TAo35UuksigWK6v r5MdDo0is6dz8n9W8GdU859KMqPQnrrHM7OSqbTQGsrOQmSXd0ZpR90krx2ajB8zwJbw 46Z+C8BRNyptTN8Ia3J5N9Bj1ni/W2ZA4yKUE3DLuR4VKdCXK7drpUJtKGwD/lLDu8Sd M5TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7hehInkKQivK5jFvcBnQIy+vpL6uJMeHgLNPrr9WBHA=; b=Q6mzbhccCVXRPOkUA4a1vmvWSuhHrH2P5I5/JYRVr//LLOq44ceg6rzluokmQn44w2 hD+tqy9y9faEa9p5DPY3wpkzgGqahIRq9QaMFtsU7iiOHNc9EH8WzM7B6pgJw1J3cye5 B+w6Ti8PFyEzNRmMZ1P+49ygTvj/yYba3v/MojL5bI28BJwCIgMup5keqR4TuDL6wPdH yeML+ab0gyG/780hLvzyHBcjj0XTIohFs6DnIiT1aX0HrSAVLTR8lBeCwUW3qe4lqdDm qExl85VJI2yuFHevXjyBS22JnMbPJ+f6prve36r91O6/EeY/psDErbT+qZWgxf5V1g4o eltA== X-Gm-Message-State: AOAM530Hqvgu9Asqkk6F9wYNZJkpEm1iucGKBmWjtN9lJ2cpppYsKKxA umUx3FfFN58lt13uNbtEDIyJN0xfliWmpQ== X-Google-Smtp-Source: ABdhPJxlQHuyxXhkFJdUVzHLPsJ3UIpFUPjj5o/V+ZE8K1MtBq9sxRCkbRU8ijIzxRasyre/AvaYfQ== X-Received: by 2002:a05:6000:8e:: with SMTP id m14mr15877518wrx.400.1602261607674; Fri, 09 Oct 2020 09:40:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 20/22] plugin: Fixes compiling errors on msys2/mingw Date: Fri, 9 Oct 2020 17:31:45 +0100 Message-Id: <20201009163147.28512-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201009163147.28512-1-alex.bennee@linaro.org> References: <20201009163147.28512-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yonggang Luo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Yonggang Luo Signed-off-by: Yonggang Luo Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20201001163429.1348-3-luoyonggang@gmail.com> Message-Id: <20201007160038.26953-21-alex.bennee@linaro.org> 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 q= emu_plugin_tb *tb) { ExecCount *cnt; uint64_t pc =3D qemu_plugin_tb_vaddr(tb); - unsigned long insns =3D qemu_plugin_tb_n_insns(tb); + size_t insns =3D qemu_plugin_tb_n_insns(tb); uint64_t hash =3D pc ^ insns; =20 g_mutex_lock(&lock); diff --git a/tests/plugin/bb.c b/tests/plugin/bb.c index e4cc7fdd6e..de09bdde4e 100644 --- a/tests/plugin/bb.c +++ b/tests/plugin/bb.c @@ -72,7 +72,7 @@ static void vcpu_tb_exec(unsigned int cpu_index, void *ud= ata) CPUCount *count =3D max_cpus ? g_ptr_array_index(counts, cpu_index) : &inline_count; =20 - unsigned long n_insns =3D (unsigned long)udata; + uintptr_t n_insns =3D (uintptr_t)udata; g_mutex_lock(&count->lock); count->insn_count +=3D n_insns; count->bb_count++; @@ -81,7 +81,7 @@ static void vcpu_tb_exec(unsigned int cpu_index, void *ud= ata) =20 static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) { - unsigned long n_insns =3D qemu_plugin_tb_n_insns(tb); + size_t n_insns =3D qemu_plugin_tb_n_insns(tb); =20 if (do_inline) { qemu_plugin_register_vcpu_tb_exec_inline(tb, QEMU_PLUGIN_INLINE_AD= D_U64, --=20 2.20.1