From nobody Sun Feb 8 21:47:40 2026 Delivered-To: importer@patchew.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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1645895359929346.52340454130126; Sat, 26 Feb 2022 09:09:19 -0800 (PST) Received: from localhost ([::1]:33464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nO0ZK-0002Kp-KH for importer@patchew.org; Sat, 26 Feb 2022 12:09:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO0XN-0008AM-Vo for qemu-devel@nongnu.org; Sat, 26 Feb 2022 12:07:17 -0500 Received: from [2607:f8b0:4864:20::136] (port=38825 helo=mail-il1-x136.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO0XL-0000Ov-U4 for qemu-devel@nongnu.org; Sat, 26 Feb 2022 12:07:17 -0500 Received: by mail-il1-x136.google.com with SMTP id w4so6826799ilj.5 for ; Sat, 26 Feb 2022 09:07:14 -0800 (PST) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id e23-20020a6b5017000000b00635b8032d45sm3138764iob.22.2022.02.26.09.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 09:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KqQIGuilfSiZo5D0/DJJljqcgNhY6dZ6uWFUPpHnygI=; b=P6iml+wBzXG4jCIazXHsszGoiPpaOjf5AGyD5pFqKqn1vuLlPZ/gq5TKXG+TllM2KQ yePhp4VTL+jUWeUL9SQofTuT1Q8BNS/ndYKykCypW5TXGEMqqna9FYWVLqoqRp4HyW9D or89fzqdwOnXpwHI07Xn/pPqOkxM+hVfkoWGsEDHOkEF7foEZcPi2PdWAx/SV+lxGk2I Cnr4Pkq+jnoe0vIDpPrvgC1/7lsqorKElX3g/TQNsM6DKYzTJVaOtvV6EaRilGJQjFdL hXE3BaoX2PGuxAup6Fmu9tJRlcJtv/e86dO1bvJXceY8BX1fGKB4vDEspxAczwoZY4WW kCeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KqQIGuilfSiZo5D0/DJJljqcgNhY6dZ6uWFUPpHnygI=; b=jlWU0UsAkboXNAcl7mnJSFYFPO2FSsNV1X2QETT7RO+k0chaxFc8G7Qra9RsWkhHj7 fnaM7vxi8m75Pr05LSKamWcPRijM7MkrfdJmewdFUTkrp2dFDVI5tR/HqZQgpQvQpGQB YXNXRtIyPnoS68whbCiQWxYcnSyKSTmPIQcJznpx0NyA9PrbZk/fN0qWly+Bdmj3CG0G Olk/O1qbyg28HniBeJenV92exwXG+Lx3F9w/T1r5Kh2xf2fPP3APmujqXEuwUEIshRnn D5cNSElWEToMiGbNFFtByboQmewCqQFtsYlsJ82+W10Yk5uICqlQmmVw5xsdh35yBZSG TLpw== X-Gm-Message-State: AOAM531Yd3GDy4P0Pu6pXnMLdC0jNnDtjAMLY5TkWY5QzN84Ra1pbKki gdqE+hzriZSo4kUaPLdzEjvy+HExAMIOWQ== X-Google-Smtp-Source: ABdhPJzA2CS4S1at5N13ZeV5eZ5N8I0KVtqHQEN8aUWXmN3yFMGaY8fKqnr4IXmQaDdjRzpOuh2ggg== X-Received: by 2002:a05:6e02:180f:b0:2c2:6ad9:9eae with SMTP id a15-20020a056e02180f00b002c26ad99eaemr11694723ilv.0.1645895234095; Sat, 26 Feb 2022 09:07:14 -0800 (PST) From: Warner Losh To: qemu-devel@nongnu.org Subject: [PATCH v2 01/16] bsd-user/main.c: Drop syscall flavor arg -bsd Date: Sat, 26 Feb 2022 10:07:29 -0700 Message-Id: <20220226170744.76615-2-imp@bsdimp.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220226170744.76615-1-imp@bsdimp.com> References: <20220226170744.76615-1-imp@bsdimp.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::136 (failed) 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; Received-SPF: none client-ip=2607:f8b0:4864:20::136; envelope-from=imp@bsdimp.com; helo=mail-il1-x136.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Peter Maydell , arrowd@FreeBSD.org, Kyle Evans , Richard Henderson , def@FreeBSD.org, jrtc27@FreeBSD.org, Warner Losh , Brad Smith Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1645895362577100001 Content-Type: text/plain; charset="utf-8" We've not realistically been able to actually run any bsd program on any other bsd program. They are too diverged to do this easily. The current code is setup to do it, but implementing it is hard. Stop pretending that we can do this. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index f1d58e905e7..bddb830e99b 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -164,7 +164,6 @@ static void usage(void) "-E var=3Dvalue sets/modifies targets environment variable= (s)\n" "-U var unsets targets environment variable(s)\n" "-B address set guest_base address to address\n" - "-bsd type select emulated BSD type FreeBSD/NetBSD/Open= BSD (default)\n" "\n" "Debug options:\n" "-d item1[,...] enable logging of specified items\n" @@ -392,17 +391,6 @@ int main(int argc, char **argv) have_guest_base =3D true; } else if (!strcmp(r, "drop-ld-preload")) { (void) envlist_unsetenv(envlist, "LD_PRELOAD"); - } else if (!strcmp(r, "bsd")) { - if (!strcasecmp(argv[optind], "freebsd")) { - bsd_type =3D target_freebsd; - } else if (!strcasecmp(argv[optind], "netbsd")) { - bsd_type =3D target_netbsd; - } else if (!strcasecmp(argv[optind], "openbsd")) { - bsd_type =3D target_openbsd; - } else { - usage(); - } - optind++; } else if (!strcmp(r, "seed")) { seed_optarg =3D optarg; } else if (!strcmp(r, "singlestep")) { --=20 2.33.1