RE: gcc 10.2.0 mtocrf instructions on Freescale P1014 (ppc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Henri.

Just found out that if I remove the argument -mcpu=8540 from the arch/powerpc/Makefile then the mtcrf instructions is used instead and the system boots.
I will have to dig in the compiler to see what the consequence of this and if this is a possible solution.


> -----Original Message-----
> From: Gcc-help [mailto:gcc-help-bounces@xxxxxxxxxxx] On Behalf Of Henri
> Cloetens
> Sent: 08 April 2021 11:08
> To: gcc-help@xxxxxxxxxxx
> Subject: Re: gcc 10.2.0 mtocrf instructions on Freescale P1014 (ppc)
> 
> 
> 
> [**EXTERNAL SOURCE**]:Please verify the source before clicking link or
> opening attachment.
> 
> Hello Renaud,
> 
> Not in the details of the PowerPc. To fix this, you need to fix the
> compiler.
> 1. Download the source code of the gcc compiler you want to use.
> 2. Go to the directory
>    gcc/config/rs6000
> 3. Search in the .md-files for the offending instruction (mtcrf)
>     (In the gcc9.2.0 there are total 20 cases).
> 4. Repair the relevant cases.
> 5. Rebuilt the compiler.
> 6. Run the test cases.
> 
> On the content, these instructions are not the same. I consulted on this
> subject
> the PowerISA version 2.07b. "mtorf" is move to one condition register field.
> "mtrf" is move to the WHOLE condition register.
> In both PowerISA version 2.07b and PowerISA version 3.0b, both instructions
> are flagged obsolete.
> 
> Best Regards,
> 
> Henri.
> 





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux