From owner-freebsd-hackers@freebsd.org Tue Apr 4 12:35:07 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32FAAD2DF11 for ; Tue, 4 Apr 2017 12:35:07 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::107]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9E36C2 for ; Tue, 4 Apr 2017 12:35:07 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:3210:b3ff:fe77:ca3f] (unknown [IPv6:2001:470:1f11:617:3210:b3ff:fe77:ca3f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id C98B818EE for ; Tue, 4 Apr 2017 12:34:59 +0000 (UTC) To: "freebsd-hackers@freebsd.org" From: Eric McCorkle Subject: Source of QEMU woes: CPUTYPE Message-ID: Date: Tue, 4 Apr 2017 08:34:56 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9i7th3aWbum4cTA5Pj6liSncgkta9kE3B" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2017 12:35:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9i7th3aWbum4cTA5Pj6liSncgkta9kE3B Content-Type: multipart/mixed; boundary="n3e7TdFMkt97h5qmBNVxNSwLE9h2RKmnV"; protected-headers="v1" From: Eric McCorkle To: "freebsd-hackers@freebsd.org" Message-ID: Subject: Source of QEMU woes: CPUTYPE --n3e7TdFMkt97h5qmBNVxNSwLE9h2RKmnV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable A while ago I posted on here about some problems I'd had with testing boot loader modifications on QEMU, and which also showed up on an unmodified HEAD. I ultimately tracked down the source of the problem: I had CPUTYPE?=3Dnative set in my /etc/make.conf. As my CPU is relatively recent, this caused some instructions that QEMU doesn't support to be generated in various places (most notoriously, in strlen), which would trigger illegal instruction exceptions. Removing the CPUTYPE?=3Dnative line restores things to working order. I'm posting this here, as it's somewhat non-obvious, and probably ought to be documented somewhere. --n3e7TdFMkt97h5qmBNVxNSwLE9h2RKmnV-- --9i7th3aWbum4cTA5Pj6liSncgkta9kE3B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEzzhiNNveVG6nWjcH1w0wQIFco2cFAljjkvAACgkQ1w0wQIFc o2d5sg/+LjUK97GGMM7APkDx+Z7ZkCGswppidSIcx9Xulehq2pGUhNE4OPXyV1RN iBXIWTRt6IeBH7OPeRX9q1xEYoZDi8E7XeTNJZbzxze2aWVnP5nPl0BuAd54Z19T /znyOkNsP0cmgFX/piwabZvGQgsEq9D3INtYQmfN7RpCel3sWEfnHNNlLHiIBXoT 7W5Zv/z34oJTZq3WmBzwAnz0XqXPCUN5dbQdJ2o5PU1IdXodAbACeQSSM/OO6c/l Zx5e1L4IRbWmoPH0rYvbnOZUewSabkA1fGONL7fjbAWlw/65Pdgtgi1GxCpzXOsD zqShKchMSqTtYgpBAsbOEFUuokIKNpU3UT4SROdwZ8ktOZtJoc10TW9ZFZHntoJV QkYOmQFp2e7Ibo2kYmWnK2xCjOIQ+WwLYFmx3vD54hICSzVKEsikpGbtUhR+3dWz uAAqAY6Eqpuhg81eNlwSSQjExVT01LWf/hCtgPoopDObxk6RNU4wKlyzZsfhnPwi ZLi3nF8lj0cQ5r5AxNhuTJODl7uepfGGjC9v1CZfTdwtWbHwsfMuQzWIYaAhGkLb Zu9HGjr423yqpOGk/rKoGHoY3A2cAwE9srUaX0lp4yKpIq/EmUrET8vD6vIT8Fm4 he91IeVmWSyUMpa2T+rP4sdZ2sfGq8h0yzw1oA94Trxjz18EqBQ= =slnC -----END PGP SIGNATURE----- --9i7th3aWbum4cTA5Pj6liSncgkta9kE3B--