Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] [jethro/master] Fix mips XLP and Octeon3 assembly
@ 2015-11-03 22:21 Mark Hatle
  2015-11-03 22:21 ` [PATCH] binutils: Fix XLP / Octeon 3 instruction clash Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2015-11-03 22:21 UTC (permalink / raw)
  To: openembedded-core

There is a clash in the machine value, as Octeon3 was assigned one value
by binutils, but the XLP patch decided to use the same value.  Since the
XLP value was not officially assigned, change it to avoid the clash.

This fixes an issue where certain instructions, such as DMUL, may be 
assembled incorrectly due to the clash.

Mark Hatle (1):
  binutils: Fix XLP / Octeon 3 instruction clash

 .../binutils/binutils/0012-Add-XLP-instructions-support.patch     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

-- 
1.9.3



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] binutils: Fix XLP / Octeon 3 instruction clash
  2015-11-03 22:21 [PATCH] [jethro/master] Fix mips XLP and Octeon3 assembly Mark Hatle
@ 2015-11-03 22:21 ` Mark Hatle
  2015-11-03 23:28   ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2015-11-03 22:21 UTC (permalink / raw)
  To: openembedded-core

Use the value 0x00000080 for INSN_XLP, as the value 0x00000040 has already
been assigned to INSN_OCTEON3 by the binutils project.

Without this change, invalid instructions can be generated for both INSN_XLP
and INSN_OCTEON3.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 .../binutils/binutils/0012-Add-XLP-instructions-support.patch     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
index c56ff91..ecc37cc 100644
--- a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
+++ b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
@@ -31,6 +31,12 @@ Netlogic. Also, update vendor name to NLM wherever applicable.
 Upstream-Status: Pending
 
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Use 0x00000080 for INSN_XLP, the value 0x00000040 has already been assigned
+to INSN_OCTEON3
+
+Signed-off-by: Baoshan Pang <baoshan.pang@windriver.com>
+Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
 ---
  bfd/aoutx.h           |  1 +
  bfd/archures.c        |  1 +
@@ -251,7 +257,7 @@ index ef26167..ef53ec6 100644
 +/* Netlogic Xlr instruction */
 +#define INSN_XLR		0x00000020
 +/* Netlogic XlP instruction */
-+#define INSN_XLP		0x00000040
++#define INSN_XLP		0x00000080
  
  /* DSP ASE */
  #define ASE_DSP			0x00000001
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] binutils: Fix XLP / Octeon 3 instruction clash
  2015-11-03 22:21 ` [PATCH] binutils: Fix XLP / Octeon 3 instruction clash Mark Hatle
@ 2015-11-03 23:28   ` Khem Raj
  2015-11-04  0:35     ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2015-11-03 23:28 UTC (permalink / raw)
  To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer

On Tue, Nov 3, 2015 at 2:21 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> Use the value 0x00000080 for INSN_XLP, as the value 0x00000040 has already
> been assigned to INSN_OCTEON3 by the binutils project.
>
> Without this change, invalid instructions can be generated for both INSN_XLP
> and INSN_OCTEON3.
>

this is ok. is octeon3 sent upstream yet ?

> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
>  .../binutils/binutils/0012-Add-XLP-instructions-support.patch     | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
> index c56ff91..ecc37cc 100644
> --- a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
> +++ b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
> @@ -31,6 +31,12 @@ Netlogic. Also, update vendor name to NLM wherever applicable.
>  Upstream-Status: Pending
>
>  Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> +Use 0x00000080 for INSN_XLP, the value 0x00000040 has already been assigned
> +to INSN_OCTEON3
> +
> +Signed-off-by: Baoshan Pang <baoshan.pang@windriver.com>
> +Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
>  ---
>   bfd/aoutx.h           |  1 +
>   bfd/archures.c        |  1 +
> @@ -251,7 +257,7 @@ index ef26167..ef53ec6 100644
>  +/* Netlogic Xlr instruction */
>  +#define INSN_XLR              0x00000020
>  +/* Netlogic XlP instruction */
> -+#define INSN_XLP              0x00000040
> ++#define INSN_XLP              0x00000080
>
>   /* DSP ASE */
>   #define ASE_DSP                       0x00000001
> --
> 1.9.3
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] binutils: Fix XLP / Octeon 3 instruction clash
  2015-11-03 23:28   ` Khem Raj
@ 2015-11-04  0:35     ` Mark Hatle
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2015-11-04  0:35 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 11/3/15 5:28 PM, Khem Raj wrote:
> On Tue, Nov 3, 2015 at 2:21 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
>> Use the value 0x00000080 for INSN_XLP, as the value 0x00000040 has already
>> been assigned to INSN_OCTEON3 by the binutils project.
>>
>> Without this change, invalid instructions can be generated for both INSN_XLP
>> and INSN_OCTEON3.
>>
> 
> this is ok. is octeon3 sent upstream yet ?

AFAIK, the octeon3 stuff is in the binutils master.

--Mark

>> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
>> ---
>>  .../binutils/binutils/0012-Add-XLP-instructions-support.patch     | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
>> index c56ff91..ecc37cc 100644
>> --- a/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
>> +++ b/meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
>> @@ -31,6 +31,12 @@ Netlogic. Also, update vendor name to NLM wherever applicable.
>>  Upstream-Status: Pending
>>
>>  Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> +
>> +Use 0x00000080 for INSN_XLP, the value 0x00000040 has already been assigned
>> +to INSN_OCTEON3
>> +
>> +Signed-off-by: Baoshan Pang <baoshan.pang@windriver.com>
>> +Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
>>  ---
>>   bfd/aoutx.h           |  1 +
>>   bfd/archures.c        |  1 +
>> @@ -251,7 +257,7 @@ index ef26167..ef53ec6 100644
>>  +/* Netlogic Xlr instruction */
>>  +#define INSN_XLR              0x00000020
>>  +/* Netlogic XlP instruction */
>> -+#define INSN_XLP              0x00000040
>> ++#define INSN_XLP              0x00000080
>>
>>   /* DSP ASE */
>>   #define ASE_DSP                       0x00000001
>> --
>> 1.9.3
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-04  0:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 22:21 [PATCH] [jethro/master] Fix mips XLP and Octeon3 assembly Mark Hatle
2015-11-03 22:21 ` [PATCH] binutils: Fix XLP / Octeon 3 instruction clash Mark Hatle
2015-11-03 23:28   ` Khem Raj
2015-11-04  0:35     ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox