Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 21:36:50 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Arvydas Sidorenko <asido4@gmail.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: no such instructions: xsave, xsetbv, xrstor
Message-ID:  <20120721183650.GC2676@deviant.kiev.zoral.com.ua>
In-Reply-To: <CA%2B6av4nd5NFry3d2cdT2pzACXLCU5yNGXGuh6%2B1MghJ5y5Vs3g@mail.gmail.com>
References:  <CA%2B6av4nd5NFry3d2cdT2pzACXLCU5yNGXGuh6%2B1MghJ5y5Vs3g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jiG1sp+CfApzbQkA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 21, 2012 at 07:55:23PM +0200, Arvydas Sidorenko wrote:
> This is the output I get when building 10-CURRENT from HEAD:
> /usr/src/sys/amd64/amd64/cpu_switch.S: Assembler messages:
> /usr/src/sys/amd64/amd64/cpu_switch.S:128: Error: no such instruction:
> `xsave (%r8)'
> /usr/src/sys/amd64/amd64/cpu_switch.S:504: Error: no such instruction: `x=
setbv'
> /usr/src/sys/amd64/amd64/cpu_switch.S:505: Error: no such instruction:
> `xrstor (%rbx)'
>=20
> $ uname -a
> FreeBSD slacker 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
> 02:52:29 UTC 2012
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>=20
> The CPU capabilities should not impact the compilation, but here
> they're anyways (E8600):
> $ grep Features /var/run/dmesg.boot | grep -i xsave
> Features2=3D0x408e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,x=
TPR,PDCM,SSE4.1,XSAVE>
> Features2=3D0x408e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,x=
TPR,PDCM,SSE4.1,XSAVE>
>=20
> Is it problem with assembler? Which on my system is:
> $ as --version
> GNU assembler (GNU Binutils) 2.22
> Copyright 2011 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or later.
> This program has absolutely no warranty.
> This assembler was configured for a target of `x86_64-portbld-freebsd9.0'.
>=20
> And classic outdated GCC:
> $ gcc --version
> gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
>=20
> Any help is appreciated.

You must follow the UPDATING guide on rebuilding the system, in particular,
you shall use buildworld and buildkernel procedure. Assembler in HEAD was
patched to support these instructions, and kernel now uses them instead
of using manual assembly results.

Host CPU features indeed have no relevance to your problem.

--jiG1sp+CfApzbQkA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAlAK9sIACgkQC3+MBN1Mb4hnnwCg9tpQ5AzZTt5ujTh/qQp+FbTi
FI0An07amCReHACxey5aUS1ftJ992FSp
=u9YM
-----END PGP SIGNATURE-----

--jiG1sp+CfApzbQkA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120721183650.GC2676>