From nobody Mon Feb 9 18:45:56 2026 Delivered-To: importer@patchew.org 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; 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=1586894879; cv=none; d=zohomail.com; s=zohoarc; b=Pc6ZN3z7hxZrgvALtixqST4THgVr7hRXzi0KeGbnekzIPwwI/GmeB3tfr69tkZQ3+RkgrEjWlqHPbm/XY8ScOzKONyvwDZksJqfp3rmRKNWvYO12sRdN/qDln4CvjTPkH2Q+he5QAz2UEtf/J7QFdMr8Irr/+qGFwACOKfptWxE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586894879; 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=LyYH1vUOROUp+ALOi+AoU+6fL4aHHF4lo5SZlCQc25A=; b=TryXO+3eDCkFlf+6aks9LYuo14/EZegd1N7pGpGPLB9VYu3q8XVjse/qZNjgt+Z+4n/S/JEl6l3UVHSMjI2UDEf42HLi61+mWMJCLsJy+bIj7mrzIo6Sbd5IymSWgaWro6DKFgELh1o3sHD2nnhPQW8Wm4JvrE/rwV2STkwRfsw= 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 1586894878990838.0992859317496; Tue, 14 Apr 2020 13:07:58 -0700 (PDT) Received: from localhost ([::1]:38344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORqf-0007Rw-5c for importer@patchew.org; Tue, 14 Apr 2020 16:07:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44422) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORpN-0005t7-Ft for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jORpM-0005tB-5K for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:37 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:53853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jORpL-0005si-RP for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:06:36 -0400 Received: by mail-wm1-x341.google.com with SMTP id d77so14502776wmd.3 for ; Tue, 14 Apr 2020 13:06:35 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u30sm22636wru.13.2020.04.14.13.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 13:06:32 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AE2271FF8C; Tue, 14 Apr 2020 21:06:31 +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=LyYH1vUOROUp+ALOi+AoU+6fL4aHHF4lo5SZlCQc25A=; b=IvmSZCaf0yjtZb0gsBQFlbhTvILOEfY9/Da4cG8YJArjhfh8PFu+VvvGPNwWFmXngu nUAqz6JWGDzYetx0BdIs/hktD5qPK7yIJAPWw7Ym83EBvpgOBGH38W8400kKl46oFxud eJYdz5OGnaPSNiRcwtOVhH4VRa60dvbzommM1bJeEDfyfu7IMSTBmNKl+R0NSBesAo1/ VgSjf+giw6lzor5Kl4UcXufBev1A9diGflZkZRMu4ujfcuoofgum6dCM6Cfj3jGXm3vN 8C0fqeuBCWXqJQXnOeu3wRc04LkEY/eA83ae0z/xfFopbE3QuK+Ox6ylyPdcFNPx0zul Zy+Q== 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=LyYH1vUOROUp+ALOi+AoU+6fL4aHHF4lo5SZlCQc25A=; b=jcL7ZmFofyWNn+OwNkuFmqNW/sIXhSE93CAqrt4VPN/v9lcvjGslQzn8aqOQSehEd6 38CT1N6REJkKJ7aiZqGlw0wqTU1gRmHkTfmWIShe3pt3a+89YUsi9kovpM8rIJ1Mclha inkCepg4DfL1kN8YHkGVT7dHUrHTYZFQeXkZqgcegjwLlJhYYHojxfR3kz8R1aFYIQuw ZvPJXlg3KyP+JyXssFuY0wLiEsG+2K8s3PapZSrAcswgjhqqj1YWwuEH0IdLHNyPSXiF iGld4r52mRTih8WxloO71b0xNjUJhHFyliwl8wmfExq3LJwtsC022QgMGtzbmD3nHr6k W1Vw== X-Gm-Message-State: AGi0PuaFdMTYtkY8D83R83fKqBc2CExRANRW5WbDRcK73cYojPDqFHug 44JBse8hnx+Y3zeKPFEtAEUDFQ== X-Google-Smtp-Source: APiQypI01tCXhk3gNbophIDXmJ2bhrGBHZHya+6Zsexa8ww7+rizey/8n3ivJMuKt38628ELoCF1Ig== X-Received: by 2002:a1c:7ed7:: with SMTP id z206mr1406655wmc.64.1586894794435; Tue, 14 Apr 2020 13:06:34 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 02/17] exec/cpu-all: Use bool for have_guest_base Date: Tue, 14 Apr 2020 21:06:16 +0100 Message-Id: <20200414200631.12799-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200414200631.12799-1-alex.bennee@linaro.org> References: <20200414200631.12799-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Riku Voipio , Richard Henderson , Laurent Vivier , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/cpu-all.h | 2 +- bsd-user/main.c | 4 ++-- linux-user/main.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 49384bb66a5..b4fb5832c4a 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -159,7 +159,7 @@ static inline void tswap64s(uint64_t *s) * This allows the guest address space to be offset to a convenient locati= on. */ extern unsigned long guest_base; -extern int have_guest_base; +extern bool have_guest_base; extern unsigned long reserved_va; =20 #if HOST_LONG_BITS <=3D TARGET_VIRT_ADDR_SPACE_BITS diff --git a/bsd-user/main.c b/bsd-user/main.c index 770c2b267ad..aef5531628a 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -42,7 +42,7 @@ int singlestep; unsigned long mmap_min_addr; unsigned long guest_base; -int have_guest_base; +bool have_guest_base; unsigned long reserved_va; =20 static const char *interp_prefix =3D CONFIG_QEMU_INTERP_PREFIX; @@ -828,7 +828,7 @@ int main(int argc, char **argv) } } else if (!strcmp(r, "B")) { guest_base =3D strtol(argv[optind++], NULL, 0); - have_guest_base =3D 1; + have_guest_base =3D true; } else if (!strcmp(r, "drop-ld-preload")) { (void) envlist_unsetenv(envlist, "LD_PRELOAD"); } else if (!strcmp(r, "bsd")) { diff --git a/linux-user/main.c b/linux-user/main.c index 1d20a83d4e8..90ad365b439 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -59,7 +59,7 @@ static const char *cpu_type; static const char *seed_optarg; unsigned long mmap_min_addr; unsigned long guest_base; -int have_guest_base; +bool have_guest_base; =20 /* * Used to implement backwards-compatibility for the `-strace`, and @@ -334,7 +334,7 @@ static void handle_arg_cpu(const char *arg) static void handle_arg_guest_base(const char *arg) { guest_base =3D strtol(arg, NULL, 0); - have_guest_base =3D 1; + have_guest_base =3D true; } =20 static void handle_arg_reserved_va(const char *arg) --=20 2.20.1