[OE-core] [PATCH 2/2] tune-ppc[65]00.inc: Disable QEMU usermode usage

Khem Raj raj.khem at gmail.com
Fri Sep 23 18:49:10 UTC 2016


On Fri, Sep 23, 2016 at 9:43 AM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> The QEMU usermode fails with invalid instruction error when used with those tunes.
>
> The issue is being tracked in [YOCTO: #10304].
>

Does this option remove using particular SPE option when invoking QEMU
in usermode ? if so there may be another issue where these
instructions are emitted by compiler and they wont be emulated.

What will this change do which fixes the problem ?
from bug it seems it needs a Qemu with 32bit ABI, are we building that
version of qemu-ppc

> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>
>  meta/conf/machine/include/tune-ppce5500.inc | 3 +++
>  meta/conf/machine/include/tune-ppce6500.inc | 3 +++
>  2 files changed, 6 insertions(+)
>
> diff --git a/meta/conf/machine/include/tune-ppce5500.inc b/meta/conf/machine/include/tune-ppce5500.inc
> index ace2614..cebb244 100644
> --- a/meta/conf/machine/include/tune-ppce5500.inc
> +++ b/meta/conf/machine/include/tune-ppce5500.inc
> @@ -18,3 +18,6 @@ PACKAGE_EXTRA_ARCHS_tune-ppc64e5500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc
>
>  # glibc configure options to get e5500 specific library (for sqrt)
>  GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'e5500', '--with-cpu=e5500', '', d)}"
> +
> +# QEMU usermode fails with invalid instruction error (YOCTO: #10304)
> +MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'e5500', ' qemu-usermode', '', d)}"
> diff --git a/meta/conf/machine/include/tune-ppce6500.inc b/meta/conf/machine/include/tune-ppce6500.inc
> index da1e864..5db7e76 100644
> --- a/meta/conf/machine/include/tune-ppce6500.inc
> +++ b/meta/conf/machine/include/tune-ppce6500.inc
> @@ -19,3 +19,6 @@ PACKAGE_EXTRA_ARCHS_tune-ppc64e6500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc
>  # glibc configure options to get e6500 specific library
>  GLIBC_EXTRA_OECONF_powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'e6500', '--with-cpu=e6500', '', d)}"
>  GLIBC_EXTRA_OECONF_powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'e6500', '--with-cpu=e6500', '', d)}"
> +
> +# QEMU usermode fails with invalid instruction error (YOCTO: #10304)
> +MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'e6500', ' qemu-usermode', '', d)}"
> --
> 2.10.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list