From patchwork Tue Jan 14 11:37:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 857231 Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp1872398wrc; Tue, 14 Jan 2025 03:40:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUZqCC5l8ZNvh05tpf5VYeYtvDTud+P6A1G4orSY9b/A0FJIKrG9HYrFPE6mpUoHsnAvXlIIw==@linaro.org X-Google-Smtp-Source: AGHT+IHQGVsJ7pRc2V+O5smpXcjCE0DGQ9HXQm3nSjgSvPVig70OTkO3U/orSWvYqrnPHVYeHSXU X-Received: by 2002:a05:620a:2589:b0:7b6:cf60:3971 with SMTP id af79cd13be357-7bcd97095bfmr4013941085a.22.1736854856778; Tue, 14 Jan 2025 03:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736854856; cv=none; d=google.com; s=arc-20240605; b=fT+vnxzEkd/StfHkDdhQGxBtKjwdhKLXefz+kfqKKWH0YPUfFjCmBrbug4pADr9Tns SKH3DFuJ+3dN8zC5VLLhWN61MZ3/dBP3fBilFEouC00mTOegzeZZ1p4KzcrQExzhpKke DLZp9XEjLMH9voJP30QiG2/q6fw2fCQbfL1H+EXDLoIcYtAO/AtVyhLb5CcH/tRRMTMj bQEcvWTzwhvhzLcqd6akYnf40PYkrwaZXAG/xOD2BQUy758aDCoBZ/QMCdGpi+FraBO9 LL7ErSizTTudRsDwUpWfeIlkUYFCv1tCtrlCNWpKNwM9pG8+8Ky3SUij+wKMz5YKYEug aEBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xbdq8PuzmcKgRuOS6aY93DBa464+R41QKxYxX1E5oro=; fh=kybcMgHu6G3G1kz+Iwx2Y7lVQ4lMSqWHrwHMI/PcVVA=; b=QgU0Rotuao/Hp3vEDQMRHXeZ0YzwkXtAuMrBsozrdxN5WtkqYxG7h688ZnWfPQbE4d V/Z/0tF1rv3pAZKJZWlIGtRtOohjQi/idkWzM4AFPAn1nstvPifYcyaNOLeUG2EEiODh 6kShMyvwwOxigja5wIMAd2jIB1sojwaHLxU6JmPcCwLapP9itnvgYyNJiL2IoM++SqBp uGDFl2ZBNeqmxdV7yTogFLQcZ6XW46HkLx+TApgoP21gL7YCyfGm/OWQtTQaCAMP3HIl 67qwlKA7YbIR3CtYIB7LbQiOddpaFo+NMdQmNr+NIuR44lEWBQbLjFJISobOibim3xsd MQYg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IcvYR/Fu"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7bce3508f42si1344904185a.528.2025.01.14.03.40.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Jan 2025 03:40:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IcvYR/Fu"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXfFv-0005CR-7s; Tue, 14 Jan 2025 06:38:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tXfFj-00057d-AB for qemu-devel@nongnu.org; Tue, 14 Jan 2025 06:38:35 -0500 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tXfFg-0005Qe-H8 for qemu-devel@nongnu.org; Tue, 14 Jan 2025 06:38:35 -0500 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-aaeecbb7309so1009896066b.0 for ; Tue, 14 Jan 2025 03:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736854711; x=1737459511; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xbdq8PuzmcKgRuOS6aY93DBa464+R41QKxYxX1E5oro=; b=IcvYR/FuUi1yW7WCDOOCnfJwliJcQMahBEDhNasxqI0H+aUe3HsA+VxNkY9nbKIKOh FYIpt0SYeVmsjH60sM2AcKud8yq+lDt7/EmsZm7y3dGetQo+jcmIKQAfA43JLgs4Iddx AZS+X0GmDlRJd1FX5+V9Zz5pE9kaD9eJAg9/oM8N8/laQQNZySY3UqKJ8Nv7VTXAUiaC yXPdIMDfGKX393gy8axDkBy/ktdS4Wg9ENTv92NyayXx8iRyli0MpRSZAeweN2yayQyh xAiTJBGQStyJRyzQsY2e71rX1N1QI47NFSfbxQJ7yiPT16CJJU4HOerF/CwDAIszjwYM t2dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736854711; x=1737459511; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xbdq8PuzmcKgRuOS6aY93DBa464+R41QKxYxX1E5oro=; b=gZX2rMsUVeJhHRYeiEYQRxU5iBUfg0PlODcUegtTFzxdhg5i8pMH2nka8iU+b8Y3Ej gsr/uxzjcRPDimmui+Gscz607uAsunAbR3XDI8jaC+qskXtNFUsdRMxDUW1++u+JWNfm 179BDNWVgUraE+uEWEdM6dXUAxSuyn9Z7tlR52MX719sV6Za/O9sLzJRVrsCMJtlBY9O RCm5AbLPRN23NOC/seliEC6F+nUaJaT0cJx6Uq7faYjQjaBfU08ri7kqU3kL4gRxl1Wc brvtJ+ZE2EwWKRbe1+d9IShjHWIAzO39gipgagALAZ2QyhoVjeBhSpviLmyESvtyyVgl il6g== X-Gm-Message-State: AOJu0Yx+t9CXkhdqDqsBmpLOCIt+NVAVDIsG91+AzJo6GrMWqJM6+4Or 7+KOHy0OWmfxIwjE/UoFmqj4S+JYg0X5xAqyBTRU3LMT0IZTmgyGNE+POtzukyY= X-Gm-Gg: ASbGncvw+Nm995xiXOl8zx096kStdVu7AeOtF7oZZGlJmPuksQcPiSm2cLamNBHdicP +CfHOtUG2HOlY5J1DS/tp3ceA6znT6WfDIIUofEuyJs+AxRAGaPGQD12BUTmYhSTAlYfiTYSmsM qTVNoT8L5mkLmg9SGLuAt8M+pijZK6KyuHjHjNc/WfaPVhAi/A2vSXRK7oMf0/omnhUuyZ2zq4N ofcgaLw7WAH9zrwkWRT02ZnMCGasubxINtgbUYTpVOHDE6EHOz8yQ8= X-Received: by 2002:a17:906:bf49:b0:ab2:b8c3:be54 with SMTP id a640c23a62f3a-ab2b8c3c3b4mr1832310666b.44.1736854710394; Tue, 14 Jan 2025 03:38:30 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c90dc6a8sm615381066b.72.2025.01.14.03.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 03:38:28 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 170325F9F8; Tue, 14 Jan 2025 11:38:23 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Stefan Weil , Pierrick Bouvier , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , Alexandre Iooss , Mahmoud Mandour Subject: [PATCH v2 14/37] tests/tcg/plugins/mem: fix 32-bit build Date: Tue, 14 Jan 2025 11:37:58 +0000 Message-Id: <20250114113821.768750-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250114113821.768750-1-alex.bennee@linaro.org> References: <20250114113821.768750-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-5-pierrick.bouvier@linaro.org> Signed-off-by: Alex BennĂ©e --- tests/tcg/plugins/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tcg/plugins/mem.c b/tests/tcg/plugins/mem.c index b0fa8a9f27..d87d6628e0 100644 --- a/tests/tcg/plugins/mem.c +++ b/tests/tcg/plugins/mem.c @@ -135,14 +135,14 @@ static void update_region_info(uint64_t region, uint64_t offset, g_assert(offset + size <= region_size); g_mutex_lock(&lock); - ri = (RegionInfo *) g_hash_table_lookup(regions, GUINT_TO_POINTER(region)); + ri = (RegionInfo *) g_hash_table_lookup(regions, ®ion); if (!ri) { ri = g_new0(RegionInfo, 1); ri->region_address = region; ri->data = g_malloc0(region_size); ri->seen_all = true; - g_hash_table_insert(regions, GUINT_TO_POINTER(region), (gpointer) ri); + g_hash_table_insert(regions, &ri->region_address, ri); } if (is_store) { @@ -392,7 +392,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, if (do_region_summary) { region_mask = (region_size - 1); - regions = g_hash_table_new(NULL, g_direct_equal); + regions = g_hash_table_new(g_int64_hash, g_int64_equal); } counts = qemu_plugin_scoreboard_new(sizeof(CPUCount));