]> code.ossystems Code Review - openembedded-core.git/commit
tune-corei7.inc: tell qemu to emulate a matching processor
authorRoss Burton <ross.burton@intel.com>
Mon, 8 Feb 2016 15:00:24 +0000 (15:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Feb 2016 12:27:25 +0000 (12:27 +0000)
commitfef106b9b97ec48bad2b9a084357b884f653d6c8
tree8c3ed8c2f8c070c989b6fdf14342d1477ec10093
parenta4377a628d69c3eb0d8a5597b4fcc46334f4ac56
tune-corei7.inc: tell qemu to emulate a matching processor

If tune-corei7 is in use then the target binaries may contain instructions that
qemu-x86-64 can't execute by default, resulting in errors on rootfs construction:

NOTE: Running intercept scripts:
NOTE: > Executing update_font_cache intercept ...
qemu: uncaught target signal 4 (Illegal instruction) - core dumped

In this case the instruction is popcnt, part of SSE4.2, so tell Qemu to emulate
the CPU that the tune targets (in this case, Nehalem). Also pass check=false as
the Nehalem machine supports VME but user-space qemu doesn't, which produces a
warning unless CPUID checking is disabled.

[ YOCTO #8888 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/conf/machine/include/tune-corei7.inc