Skip to contentSkip to conversation

musl: don't compile in mips16e mode

PATCH In review [email protected] 2 participants 4 messages Jul 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 musl: don't compile in mips16e mode

From: André Draszik <[email protected]>

musl contains hand-written assembly which is not compatible with the MIPS16e mode.

---
 meta/recipes-core/musl/musl.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/musl/musl.inc +3 -0
index 5e6cd01..276b00f 100644
@@ -24,3 +24,6 @@ FILES_SOLIBSDEV = ""
 FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}"
 INSANE_SKIP_${PN} = "dev-so"
 
+# Doesn't compile in MIPS16e mode due to use of hand-written
+# assembly
+MIPS_INSTRUCTION_SET = "mips"
Signature · 1 line
2.8.1
#1 lore raw
Quoted 21 lines · On Jul 20, 2016, at 8:19 PM, [email protected] wrote:

From: André Draszik <[email protected]>

musl contains hand-written assembly which is not compatible with the MIPS16e mode.

---
meta/recipes-core/musl/musl.inc | 3 +++

1 file changed, 3 insertions(+)
meta/recipes-core/musl/musl.inc +0 -0
index 5e6cd01..276b00f 100644
@@ -24,3 +24,6 @@ FILES_SOLIBSDEV = ""

FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}"
INSANE_SKIP_${PN} = "dev-so"

meta/recipes-core/musl/musl.inc FILES_SOLIBSDEV = ""

Quoted 3 lines
meta/recipes-core/musl/musl.inc +3 -0
+# Doesn't compile in MIPS16e mode due to use of hand-written
+# assembly
+MIPS_INSTRUCTION_SET = “mips"

Looks ok. However, does it make sense to have it compiled with mips ISA for a mips16e part ? will it work in all cases or only certain SOCs

Quoted 8 lines

--
2.8.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 22 lines · Khem Raj
Quoted 22 lines · On Jul 20, 2016, at 8:19 PM, [email protected] wrote:

From: André Draszik <[email protected]>

musl contains hand-written assembly which is not compatible with the MIPS16e mode.

---
meta/recipes-core/musl/musl.inc | 3 +++

1 file changed, 3 insertions(+)
meta/recipes- renamed from meta/recipes-core/musl/musl.inc +0 -0

core/musl/musl.inc
index 5e6cd01..276b00f 100644

meta/recipes-core/musl/musl.inc +0 -0
@@ -24,3 +24,6 @@ FILES_SOLIBSDEV = ""

FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}"
INSANE_SKIP_${PN} = "dev-so"

Quoted 7 lines

meta/recipes-core/musl/musl.inc FILES_SOLIBSDEV = ""

Quoted 3 lines
meta/recipes-core/musl/musl.inc +3 -0
+# Doesn't compile in MIPS16e mode due to use of hand-written
+# assembly
+MIPS_INSTRUCTION_SET = “mips"

Looks ok. However, does it make sense to have it compiled with mips ISA for a mips16e
part ?

MIPS16e is just an optional extension (ASE) on some mips32 and mips64 parts. There can not be mips16e only parts.

Quoted 1 line

will it work in all cases or only certain SOCs

MIPS_INSTRUCTION_SET in OE is implemented similar to ARM_INSTRUCTION_SET. If set to 'mips' (as above), it will simply revert to the standard instruction set for the part we're building for, mips32/mips64/etc.

Given mips16e is an optional ASE, this currently is hooked into 24k family type cores in OE, only.

So yes, this should not break anything.

BTW, Qemu supports mips16e (if the right target is selected).

Cheers,
Andre'

#3 lore raw
Quoted 31 lines · André Draszik
Quoted 22 lines · Khem Raj
Quoted 22 lines · On Jul 20, 2016, at 8:19 PM, [email protected] wrote:

From: André Draszik <[email protected]>

musl contains hand-written assembly which is not compatible with the MIPS16e mode.

---
meta/recipes-core/musl/musl.inc | 3 +++

1 file changed, 3 insertions(+)
meta/recipes- renamed from meta/recipes-core/musl/musl.inc +0 -0

core/musl/musl.inc
index 5e6cd01..276b00f 100644

meta/recipes-core/musl/musl.inc +0 -0
@@ -24,3 +24,6 @@ FILES_SOLIBSDEV = ""

FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}"
INSANE_SKIP_${PN} = "dev-so"

Quoted 7 lines

meta/recipes-core/musl/musl.inc FILES_SOLIBSDEV = ""

Quoted 3 lines
meta/recipes-core/musl/musl.inc +3 -0
+# Doesn't compile in MIPS16e mode due to use of hand-written
+# assembly
+MIPS_INSTRUCTION_SET = “mips"

Looks ok. However, does it make sense to have it compiled with mips ISA for a mips16e
part ?

Quoted 2 lines

MIPS16e is just an optional extension (ASE) on some mips32 and mips64 parts. There can not be mips16e only parts.

OK, yes my search also ended in finding no mips16e only SOC.

Quoted 23 lines
Quoted 2 lines

will it work in all cases or only certain SOCs

MIPS_INSTRUCTION_SET in OE is implemented similar to ARM_INSTRUCTION_SET. If set to 'mips' (as above), it will simply revert to the standard instruction set for the part we're building for, mips32/mips64/etc.

Given mips16e is an optional ASE, this currently is hooked into 24k family type cores in OE, only.

So yes, this should not break anything.

BTW, Qemu supports mips16e (if the right target is selected).

Cheers,
Andre'

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core