tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compile
PATCH 1/1 tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compile
Currently the -mcpu parameter is not passed to cross gcc when assembling kernel .S file, the implicit -mcpu option that defaults to the latest server cpu might casuse incorrect assembling.
A existent case is that wait instruction of ppce500mc is incorrectly assembled to power9 version with default -mcpu setting, accordingly kernel boot calltrace happend when wait instruction is executed on ppce500mc targets.
--- meta/conf/machine/include/tune-ppce500mc.inc | 3 +++ 1 file changed, 3 insertions(+)
meta/conf/machine/include/tune-ppce500mc.inc +3 -0
@@ -12,3 +12,6 @@ PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce50 # glibc configure options to get e500mc specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'ppce500mc', '-with-cpu=e500mc', '', d)}" + +# pass -mcpu=e500mc for ppce500mc kernel cross compile +TARGET_CC_KERNEL_ARCH = "-mcpu=e500mc"
Signature · 1 line
2.4.11
The patch should be sent to oe-core maillist, ignore it.
Best Regards,
Zhenhua
Quoted 37 lines
-----Original Message-----
From: Zhenhua Luo [mailto:[email protected]]
Sent: Tuesday, June 28, 2016 3:24 PM
To: [email protected]
Cc: Zhenhua Luo <[email protected]>
Subject: [oe-core][PATCH] tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compileCurrently the -mcpu parameter is not passed to cross gcc when assembling kernel .S file, the implicit -mcpu option that defaults to the latest server cpu might casuse incorrect assembling.
A existent case is that wait instruction of ppce500mc is incorrectly assembled to power9 version with default -mcpu setting, accordingly kernel boot calltrace happend when wait instruction is executed on ppce500mc targets.
Signed-off-by Zhenhua Luo <[email protected]>--- meta/conf/machine/include/tune-ppce500mc.inc | 3 +++ 1 file changed, 3 insertions(+)meta/conf/machine/include/tune-ppce500mc.inc +0
-0@@ -12,3 +12,6 @@ PACKAGE_EXTRA_ARCHS_tune-ppce500mc ="${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce50
# glibc configure options to get e500mc specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'ppce500mc', '-with-cpu=e500mc', '', d)}"meta/conf/machine/include/tune-ppce500mc.inc +3
-1+ +# pass -mcpu=e500mc for ppce500mc kernel cross compile +TARGET_CC_KERNEL_ARCH = "-mcpu=e500mc" --2.4.11