From patchwork Tue Dec 17 01:07:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 851411 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp110700wrq; Mon, 16 Dec 2024 17:10:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWNbMzrymHuZn+0ZrPaFaEIZIwCQV/8sKb/9XElbaneFG46OHsdegpfAztXFYIJtVA2FyW1Ig==@linaro.org X-Google-Smtp-Source: AGHT+IHg61g3CPiwveGzUEJI4lPM06Zh9TpL5EpR2vR3vd18rxdvfOsjIIEGfTwjCnDE35ItbzBa X-Received: by 2002:a05:622a:47:b0:467:64ef:9da6 with SMTP id d75a77b69052e-467a5723c11mr276415291cf.10.1734397803542; Mon, 16 Dec 2024 17:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734397803; cv=none; d=google.com; s=arc-20240605; b=YwZZNy+P/nqQ94sy8agZq/E7LscLa5XKicwmZFVwbPU6VBEivCdMTRPSvgcPdyXKwP rVD3JOrdSgWB37DbQ3r+FL1ActdNvcZkuSxHUHMd+h+C3Ki67haLkvXKbDUZaKqniW41 l8YZipFP3IWHvOf/Q0QCoDOeEKGINy3j+1l+Q8eeQguJmOepAhjlP+WKnarBaCOCK+v9 sLa/hKsOpXGDmuWcgGk9l1D80o7N6PXmpbSFEcwuhCaJ1Ndere/s2jp/5koWYXrxmc9V Ub1UaagIrBbFt8KlJ1v6v/FHGctGzdeWBq90tbCooGEg3ZK44xwtzp4rrhVLrFRhRBwB fTcg== 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=rWJG60kb5t0dGokgOb8XWZnNeuJ8T72pjzJRQxGzMOY=; fh=CFa3ou2Ry4mS7fTsZUswJFlbz+fCeIacXufDVqA7iAo=; b=JfMqms6n6i2+acj1uwVMEDj84qlklwCN7ekHwq9eAp/D9LeeCgzTNrQukcjWvMXlcZ mOvpc4fjYbUqdi+m2BYotPuvxwcGc1MoK06Iq7rML9GstqnwLGLfySN5fw6rUTGDTH1L XulSVnDPEA1BQXTorJ9WmUfy7K7QaHHaCwFtZefzoLu3r0YKhxyZt74lLhZ9gQktOJ3h xc9dXh7L634ubYjwwLbnYRY26LPKc0QoIz9kqu7l6j8py07bs2J5CvpBmL7j6L2j/8dr WNKHFu2pDuPxt/i3IuGrmSfw6Uv/RbRbuldqfzwGgEwjxGlIPNu/mgc4msiUoV56j2sZ nTpg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ov7M7CZy; 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 d75a77b69052e-467b2e85dbcsi94884521cf.270.2024.12.16.17.10.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Dec 2024 17:10:03 -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=ov7M7CZy; 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 1tNM3d-0008HS-26; Mon, 16 Dec 2024 20:07:29 -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 1tNM3a-0008GN-DU for qemu-devel@nongnu.org; Mon, 16 Dec 2024 20:07:26 -0500 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNM3Y-0004xl-Kr for qemu-devel@nongnu.org; Mon, 16 Dec 2024 20:07:26 -0500 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-725dac69699so4067806b3a.0 for ; Mon, 16 Dec 2024 17:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734397643; x=1735002443; 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=rWJG60kb5t0dGokgOb8XWZnNeuJ8T72pjzJRQxGzMOY=; b=ov7M7CZyYKFL0gapxnc5L5aNQSdL0ef6DbTVMP0ieyB0NvXj+5jP3hByKEhLspfMUm iFKZLR8ncm4GVkanaY9j9HvuRr1ku5k1dKNg1tGuLupHBvdcZlaIYgNE5E4RF0rpNd0f 9F5Guih375Or2+D/YusU0xHQ7WZpTyN4VOR2kyw/C7R+VkwbBYWcxu+2n0ddxEibMyHE CLoxVFDLU1ARJ4kRgiV8k+YfpTljQS7uNwqaHXEEr/iTMlmcInca0O5hHZuHB3eZoIyt HISmPT7mkBABhr0yPIiRaOXmJeihWkEGDEuszfiuH/iusqSxPJLY51A9FRQ16PKsnEw8 wEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734397643; x=1735002443; 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=rWJG60kb5t0dGokgOb8XWZnNeuJ8T72pjzJRQxGzMOY=; b=Tf4k3RZgakgLsUAOz6RLaPTiNr6PsgW4TopFQmQsdEjxBysfrDKJNfDQ1i1mK7aCNm 496iT3dWtZFVHRM/mrXpwaaIlS0/WI9+iPLhPJ5PbdDhBl9jjAkeOliVmbXIJoygYXlT KNl95iSwqhl0F6Y4VSrjr1dpjaaDPZ6YCnMfM2MJ2+Zl673kAzZj7/KZbvvBfuMrWksx j/tIsTtnCWPAt/lCrgJ6rhVRwCV5Pgq9YxjhqQX042tiBUcpof4mfoOX73lbKOGF/zfR QCjorKBloJ9ZVxfKWFXZBM/wx+inln3YndXEVlmD8p0MjJxwOX8GROqBNcH0lAf0qm6X rR0A== X-Gm-Message-State: AOJu0Yzhujipc7eOhlfnLqL+qd8rVXuqEo+fmF17hAd+e8rsTt7Vu+d4 7jlE+aC9qgOzGxlEy1O1g3oxWhfQtC58kIQttUUnaTg48mvYGK+6NBaC/B+VZEBVmMvPS5+6ajh rX68= X-Gm-Gg: ASbGnctwXDr7imxV3wVoO1jm2mKY28nuXi4FfJmjhthG+UpjYY5gBk+EmoPkhqrmlYG ChPZP6oPYN8X0/zE41A/xLjmfeLebQow+I37LeuijTfZAVX0nX7VuoZ3nzeru5xaITFm/1CPAwc ZHzV2zggyzYkHyNeHxLFi0xz1hzKTy5Bz5/l7L3AX3qzOXaZeDNF8As8erDUTEV1PdtyJkUVKNG BZigkimFGWaJB0lV23sb3p317p7/loV0QUaQlkiGYDsbuF7bWKqzSCgYO+oEpneMTsHnnjEMO6q Nb83ZSeHxEmNKq4= X-Received: by 2002:a17:90b:3d12:b0:2ee:ed1c:e451 with SMTP id 98e67ed59e1d1-2f28fb67922mr23471763a91.15.1734397643406; Mon, 16 Dec 2024 17:07:23 -0800 (PST) Received: from pc.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e6d0e4sm48746595ad.261.2024.12.16.17.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 17:07:23 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, Pierrick Bouvier , Alexandre Iooss , Paolo Bonzini , Mahmoud Mandour , Thomas Huth , philmd@linaro.org Subject: [PATCH 06/13] tests/tcg/plugins/mem: fix 32-bit build Date: Mon, 16 Dec 2024 17:07:00 -0800 Message-Id: <20241217010707.2557258-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241217010707.2557258-1-pierrick.bouvier@linaro.org> References: <20241217010707.2557258-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x436.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 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- 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 b0fa8a9f277..d87d6628e09 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));