From nobody Tue Oct 11 04:24:31 2022 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MmjPW4Q0kz4dp19; Tue, 11 Oct 2022 04:25:19 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.oetec.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MmjPW0PsVz40Rg; Tue, 11 Oct 2022 04:25:19 +0000 (UTC) (envelope-from dclarke@blastwave.org) X-Spam-Status: No X-oetec-MailScanner-From: dclarke@blastwave.org X-oetec-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-5.104, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, DKIM_VALID_EF -0.10, NICE_REPLY_A -2.01, URIBL_BLOCKED 0.00, URIBL_DBL_BLOCKED_OPENDNS 0.00, URIBL_ZEN_BLOCKED_OPENDNS 0.00) X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-ID: 29B4OVml031876 X-oetec-MailScanner-Information: Please contact oetec for more information Received: from [172.16.35.2] (cpeac202e7325b3-cmac202e7325b0.cpe.net.cable.rogers.com [99.253.170.241]) (authenticated bits=0) by mail.oetec.com (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 29B4OVml031876 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 11 Oct 2022 00:24:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blastwave.org; s=default; t=1665462273; bh=Mvf4kgaje8DEwWvBdRxEbzdESVG0rNsk/HHYW1ggqSs=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=W97J6Pcbdx3m4IbExzq9YGYXMZi4BdUJ/5XEKmJddZHkmYwLdFTRp1ZDylyy6KGyr WnjpGvmW5YMFv6JW6ROEFllt/ckdJXJJDJZCZU68X6GDPF8Ibxin07Eite/NDzC4/t 4yW95EPZq7YvEelLyjJTnbvOSjve87cKUrpB4QWi9dYLjuE5xftClHRVq6nX+n71uo 3VfJ9FlDFUUyi0/syatMUljto9Wa58GFd+WlZrFT40igUzQenH80X4igL4f/rfAP2N NjGPc9OoGFfOJcqlIG8E54ts1NA9QzKY8afQPuLdk4AB/px809nyKZTq55kCmdlEon UYbZVHL/YctlA== Message-ID: <11c1eb3b-0ef4-2c2f-513e-6555346a67ea@blastwave.org> Date: Tue, 11 Oct 2022 04:24:31 +0000 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Has anyone tried to build QEMU from ports lately? Content-Language: en-US From: Dennis Clarke To: Warner Losh Cc: FreeBSD CURRENT , riscv@freebsd.org References: <4a476b1c-74e4-9cb8-17a4-202c81b2da1d@blastwave.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4MmjPW0PsVz40Rg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=W97J6Pcb; dmarc=pass (policy=quarantine) header.from=blastwave.org; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx:c]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[riscv@freebsd.org,freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[blastwave.org:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/11/22 04:20, Dennis Clarke wrote: > On 10/10/22 17:53, Warner Losh wrote: >> On Mon, Oct 10, 2022 at 10:56 AM Warner Losh wrote: >> >>> I know what's causing this problem. I'll resolve. >>> >>> tl/dr: _pv_entry.h depends on sys/param.h being included before its use. >>> >> >> https://reviews.freebsd.org/D36927 fixes it by making sys/_pv_entry.h >> more >> self-contained and less reliant on param.h pollution. The kernel includes >> that >> everywhere it's used, but userland is more hit or miss because >> machine/pmap.h >> isn't a well defined interface, but is needed for some things sometimes. >> > > I am not sure where this is related, however, there is a change in QEMU: > > > https://github.com/qemu/qemu/commit/a4a9a4432e2bf280a989ca344466d7375db7993f > > > > Which seems to provide a way around some really long ISA cpu name data > that gets caught in sys/riscv/riscv/identcpu.c at around line 113 or > so : > > Forgot to mention : https://github.com/qemu/qemu/blob/master/hw/riscv/virt.c#L248 I wonder what the string is that tossed the KASSERT. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional