From patchwork Sat Sep 16 03:29:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 723575 Delivered-To: patch@linaro.org Received: by 2002:adf:f0d1:0:b0:31d:da82:a3b4 with SMTP id x17csp710381wro; Fri, 15 Sep 2023 20:38:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE10b3wZ9AO+mFTgc/n2CSlDih34ubR2oxb74aE1ysvpgSpQYwh5AMGx6bN/cZiyxlgE24D X-Received: by 2002:a0c:f584:0:b0:656:269c:5789 with SMTP id k4-20020a0cf584000000b00656269c5789mr3654394qvm.9.1694835526061; Fri, 15 Sep 2023 20:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694835526; cv=none; d=google.com; s=arc-20160816; b=DROq+aYtweok89uCIoz0+UqFfzxnh06Aoi6B+i8Mxl7M54pqp4QG23PGRIlFHrblfU cSZfXtFJgRD9o4cX9bL5qTSWg5hZdcRFfsG+EwUT/ApZwpHvUYOGZ/yb3aCG9+tnTt6K D2rOK4Wzx+EjTgR7vbUauMhn4vkWV/XkM3WMb81WPhVJpPOLpwAxCK76Te/yb84m2ihL 6LAnTGhZBluwUqOJW+oxdg7xlalshAew/WzgFCDRAb9hjLvMO1CT8SDFqKUBVmMrF0X4 jMYumRE0iDlH7jKvRt9h4GNCRUKiH4jUpLdaO1BADAM14/ZNb7E6n647HYte29gPt/b5 R1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=PnAwpjjPQYUKoAysf3zPVEkKCoe8u86MgzkiH359pjE=; fh=Atv+IKuqUQZm0AEVIFj6topvBdFFITkKWoftNiCla14=; b=hkQJA7AFF4BtVSf0VtqMo5nLD+SMK555up8q/2C+BpswBdqaC5b6ujr05SU7UG6rxQ 5fasDbW7qTL9l6vPhhP3CiSMLkPxNGg/dWSpktToMmrk54LOfIWQ2qi4mrC8DP1Bzs07 vuHkNnPXZJAWvngGGeorMZtOWCNXv0vkajCKB6aMlhG5q3bx21CM5LK4px4ftbY811w8 EUSKpHRj05NZiAsr1R5a2qsy1YHQshifzHsGJObv6YJqhjELaGWamhGLmwjJKQU2lbyB CuuTm4ukJ5/nFcCwbENXgOzRkLO7PP1/LhD6Y7yTW+jVIAg9MQQ2+CAeoS1HaXUA5yJ9 RW+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wF9ehr93; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u17-20020a05620a431100b0076cf352b3f9si3316559qko.761.2023.09.15.20.38.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Sep 2023 20:38:46 -0700 (PDT) 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=wF9ehr93; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhM0l-0005tc-1q; Fri, 15 Sep 2023 23:30:23 -0400 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 1qhM0i-0005sl-F5 for qemu-devel@nongnu.org; Fri, 15 Sep 2023 23:30:20 -0400 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhM0f-0007yb-S6 for qemu-devel@nongnu.org; Fri, 15 Sep 2023 23:30:20 -0400 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1d63d38c74fso1327001fac.3 for ; Fri, 15 Sep 2023 20:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694835016; x=1695439816; 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=PnAwpjjPQYUKoAysf3zPVEkKCoe8u86MgzkiH359pjE=; b=wF9ehr93L6KQH9jGXY8u77lIZH5A7YXjCPjGISuf6ZgT7PZxmeSjgVia4LSBMI5VB4 Cqlwr6IkbvHHvcK3rC2oirGC+Et4JmwqP90+J7HKNVhLb34qED/PGThiYXo447MCxCoG 1cds5gltvYVE0/GOCxvTXpeDJHufk70EPYt4+r0H3MqkvfpF7IKdo3XXmChBRRT/DS7P w4nHL7HY+C7IyBX2nzNdDMYf4S7E5RGm8ho98+qdKdwmg4epLPXumHIvhuG0lI1rbtac 8MI0R1IHIjtGC7MIgnuN6jXKLwb4QsLvxX5x1WFPeRE/04a/ZXjpnhGktuR12o6sZhTb PmGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694835016; x=1695439816; 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=PnAwpjjPQYUKoAysf3zPVEkKCoe8u86MgzkiH359pjE=; b=u/WOtjDmGTO9/nnQKYLyaXlD+BKlqQf/YiKzPUem+UQ12ixL+qy3FejGC0A5volyR1 Ud+oZzNDERFckWRYyEtyix0A8J+vi8SUEaQE4fqpV0omgToY00JEa+Erov1YpwOiR/qg ldrIlJKHIyuc+mwqe/DGRhn38gBP2/GngxguRsktY2btnIFFqqpe3GhUXdHT8Bx3iUc2 yp8VrC4h7rn6DHLCA9V8kjHtKIxsJPQeKNKrrmIZuGAbsNAHxxNYNPY1Q5/DyITEsRRa KV48Rc1OtslurYaWk0QGMlix+zKkuSjmVFQ3QdPmbSPdPQ+Jigfz7Qyb/PclS9z0Ut61 EZJQ== X-Gm-Message-State: AOJu0YzQUvCEeJh9wMm5hwPllRSFAd/SLrx2z2h6sLnQ/gOFH2wibz4W x63yOmJ15cnwXyYWSY3oU7z4pIwJZAfynS0Idqs= X-Received: by 2002:a05:6870:418e:b0:1a9:caa6:1337 with SMTP id y14-20020a056870418e00b001a9caa61337mr3941489oac.23.1694835016370; Fri, 15 Sep 2023 20:30:16 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id j26-20020aa783da000000b00687a4b70d1esm3577320pfn.218.2023.09.15.20.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 20:30:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Akihiko Odaki Subject: [PULL 03/39] util: Delete checks for old host definitions Date: Fri, 15 Sep 2023 20:29:35 -0700 Message-Id: <20230916033011.479144-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230916033011.479144-1-richard.henderson@linaro.org> References: <20230916033011.479144-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x36.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: Akihiko Odaki IA-64 and PA-RISC host support is already removed with commit b1cef6d02f ("Drop remaining bits of ia64 host support"). Signed-off-by: Akihiko Odaki Message-Id: <20230810225922.21600-1-akihiko.odaki@daynix.com> Signed-off-by: Richard Henderson --- util/oslib-posix.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 4d583da7ce..e86fd64e09 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -585,7 +585,7 @@ char *qemu_get_pid_name(pid_t pid) void *qemu_alloc_stack(size_t *sz) { - void *ptr, *guardpage; + void *ptr; int flags; #ifdef CONFIG_DEBUG_STACK_USAGE void *ptr2; @@ -618,17 +618,8 @@ void *qemu_alloc_stack(size_t *sz) abort(); } -#if defined(HOST_IA64) - /* separate register stack */ - guardpage = ptr + (((*sz - pagesz) / 2) & ~pagesz); -#elif defined(HOST_HPPA) - /* stack grows up */ - guardpage = ptr + *sz - pagesz; -#else - /* stack grows down */ - guardpage = ptr; -#endif - if (mprotect(guardpage, pagesz, PROT_NONE) != 0) { + /* Stack grows down -- guard page at the bottom. */ + if (mprotect(ptr, pagesz, PROT_NONE) != 0) { perror("failed to set up stack guard page"); abort(); }