Message ID | 20241217224306.2900490-5-pierrick.bouvier@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp616343wrq; Tue, 17 Dec 2024 14:43:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWCpqUwPGXMpklIWgZA+x1G5RPK8d+ACmGEcYEaXe/PjCK9YRDZy0dSSFoxz7E/noBJYo840g==@linaro.org X-Google-Smtp-Source: AGHT+IGDYDJ5OtFkuBYgPtNfAm+iYK1eEved5bf/xtEFhzNZ9zxdhhU5dKk3pGsIPjVZqUT/PxW2 X-Received: by 2002:a05:622a:120a:b0:467:6e25:3f3d with SMTP id d75a77b69052e-46908df58f8mr9535331cf.15.1734475419657; Tue, 17 Dec 2024 14:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734475419; cv=none; d=google.com; s=arc-20240605; b=ArZPUBXL2juJD9+rYGt3Wz4QrxshdtmGdBXSdrUKHR/XJsvurDfnMy9EMCqZeQ4YIJ bivHiA+cU6esz/8hhSCTHAU5c+L8h/fkoikdmfbcyCeKNaa4Wn+MNtAO/sDsekvNmEFa Jq6llwkeOSjqIsC6qPJ8BlD8zd6fYQrrcNSvAhS5J7hx6dRojn8laMBiom7tA06KOMuk 6dKglRJtDncKBxFJdC14Qeq7Ai6g5953alCPwHlhnRK0ZlcNvGsY1O0s7V6roWl4V8bN G3M3G9BxPJpT7puCrj3Bi0GaBbhsokdTZ1p2w+H9zvSsfkdiZvcwdsaC+0Gd7x2Vislo 2NUQ== 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=+FHNfG1b8pwrU+SQi579sB8c86h/0xjzKBe/XqZ77yg=; fh=e32mLanPjfs41dQwy8Wt4zFa68BQ2A3naWRPcWqt/Vw=; b=DCsePTgDBreoQboCrxVFBwV8n1mKOPa0Gm1eaKcFE2qvaLuq43kzn3sjcswXWH3qKM tBEbNv9gcuYdFBoVMexUeddV8eaoEfp2tcanb9Jj/jikDtVImio3ER/aRz/rot1kPUUE O5sLMGLv6O78cxsDktkodO3+akE5NCKY+01sV5jujRXQU5HVnuAN03rw5uB1O+Rm3+Pj fyresCt7qM14VcGXNH/4yMixtMN+u9seR+OBedrjIrikFchB2Sjk0pH0NCJD3ejE7gkB rgCqpW8QRs9yeVxf4wDASPmecwURSlvZpJOkZkMGXFahV0ABkQBrcEWQsb5nWP9LYgf1 TljQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OOtjmH7k; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467b2cbb05csi121768161cf.165.2024.12.17.14.43.39 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Dec 2024 14:43:39 -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=OOtjmH7k; 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 <qemu-devel-bounces@nongnu.org>) id 1tNgHg-0004Jg-6o; Tue, 17 Dec 2024 17:43:20 -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 <pierrick.bouvier@linaro.org>) id 1tNgHe-0004J6-7B for qemu-devel@nongnu.org; Tue, 17 Dec 2024 17:43:18 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>) id 1tNgHc-00019D-MI for qemu-devel@nongnu.org; Tue, 17 Dec 2024 17:43:17 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-728eccf836bso5151642b3a.1 for <qemu-devel@nongnu.org>; Tue, 17 Dec 2024 14:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734475394; x=1735080194; 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=+FHNfG1b8pwrU+SQi579sB8c86h/0xjzKBe/XqZ77yg=; b=OOtjmH7k9KPnzozY+LEnKimkvSMRBcc/6kSe+a2I5xfUk1b1OPKROBUs1a2dI/hzf2 X/IRN1jjmfLY5Z5KUgXQFd5tEi7wUaIJ1gZPLh5M1JyNoglhEtF4J8A291/dIFcC1j84 h1zVIT8eQ1tgFx3Xxy2+tsRmjMGcrgYYscsT27MYFa3f2NnfZn2Un1oRmslIJvPLmoc4 49O4/fVifzV2mkCDaXacwkuVy4KS0b40HPFQVNv9Q3BO8AoOcqJxef5HVvIAz0u21nJV UtGcVKkjT0Dlk1nKZz3cODpufsxsw3ZGU7yV+knyNYIZY5Z9jIOZy8NWjcS95teM9MiB jTRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734475394; x=1735080194; 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=+FHNfG1b8pwrU+SQi579sB8c86h/0xjzKBe/XqZ77yg=; b=OoargjfdgRxVXrmvA7HNUkrGxc6SPmQJXQaZyeBE7aSD6sfsM/WL25SvSThUVJ4jRr NYURr8TbnBDb9wvHyBCf88iIE/+sz+WIn3tzSLqptCUSv+wRdlYMv2PeCkS8SghWI4fH SiYSkhtAPkt+kIJZbSDnHLFDR7AxWYedoHwgEIHxz3bRJuWew8enAH1tYaxFXxmPD5JM TqsIXDQYNP00AITJcyAs+oE9qjfGAgI5N3/KMOlKyhubyNBbdU05MWgHtLGbU+WUR0lN hYD7IqET599QU+4OKurz6weSZQvZqOYFeqNA0ty+obMfK+jVcBnlj9QwaDQRUmRGO7NB 9E4g== X-Gm-Message-State: AOJu0YwQobHZxvd6vR2rlcgKOmhb/xhorO8FV9/HSZ25ep+YO6AovRUk 8R4N6MOG5trAiUqFy29NHV6JQjJ897ZHj5ANONr5aOV86oEcBedAcM7G43YM6nt2jY1jeeqdsg/ xZcs= X-Gm-Gg: ASbGncvLDiFt5dooZsf/4ebGrZPJGYt1rf+b2Yn+h98inoi2VnBXpMZWx60zu66FMcA r65U/8a4chhnKGO+2cD7Xo/E0BHCPjNul/iTjzikWVS2gpy8nrppt+zaixf9j7ISTeHCSEtekl+ rldQqyTl3zCjAgcTiknAJbofVF7VEBfkvCc7LWziXPALzMzOx2b6CpfNdXLFSTX1e4xkZFLETKT 4nym08ogkLhFgps7W5CdPUl5pr4V7VhsjMza168+7/3oJne562dFKyQ X-Received: by 2002:a05:6a21:9990:b0:1e1:becc:1c81 with SMTP id adf61e73a8af0-1e5b487dfa4mr890237637.32.1734475394339; Tue, 17 Dec 2024 14:43:14 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72918ac53f3sm7463214b3a.27.2024.12.17.14.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 14:43:13 -0800 (PST) From: Pierrick Bouvier <pierrick.bouvier@linaro.org> To: qemu-devel@nongnu.org Cc: Pierrick Bouvier <pierrick.bouvier@linaro.org>, =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= <alex.bennee@linaro.org>, richard.henderson@linaro.org, philmd@linaro.org, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, Thomas Huth <thuth@redhat.com>, Paolo Bonzini <pbonzini@redhat.com> Subject: [PATCH v3 04/11] tests/tcg/plugins/mem: fix 32-bit build Date: Tue, 17 Dec 2024 14:42:59 -0800 Message-Id: <20241217224306.2900490-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241217224306.2900490-1-pierrick.bouvier@linaro.org> References: <20241217224306.2900490-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x435.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
Fix 32-bit build for plugins
|
expand
|
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));