Adds support for including loongarch control and status registers into core files.

刘振松 liuzhensong@loongson.cn
Sat Aug 7 02:00:12 GMT 2021


Thanks
Michael

I have updated the patch.

 
> Hello,
> 
> On Fri, 6 Aug 2021, 刘振松 wrote:
> 
> > The following patch adds support for including loongarch control and 
> > status registers into core files.
> > 
> > complete codes in github (https://github.com/loongson/binutils-gdb), 
> > we'll push it to master after stable.
> 
> One remark:
> 
> >                                         /*   note name must be "CORE".  */
> 
> This comment ...
> 
> > +#define NT_LARCH_CPUCFG 0xa00          /* Loongarch CPU config registers */
> > +                    /*   note name must be "LINUX".  */
> > +#define NT_LARCH_CSR    0xa01          /* Loongarch control state registers*/
> > +                    /*   note name must be "LINUX".  */
> > +#define NT_LARCH_LSX    0xa02       /* Loongarch Loongson SIMD Extension registers */
> > +                    /*   note name must be "LINUX".  */
> > +#define NT_LARCH_LASX   0xa03       /* Loongarch Loongson Advanced SIMD Extension registers */
> > +                    /*   note name must be "LINUX".  */
> > +#define NT_LARCH_LBT    0xa04       /* Loongarch Loongson Binary Translation registers */
> > +                    /*   note name must be "LINUX".  */
> >  #define NT_SIGINFO     0x53494749      /* Fields of siginfo_t.  */
> 
> ... belonged to this #define, your patch separates them by inserting in 
> the middle.
> 
> >  #define NT_FILE                0x46494c45      /* Description of mapped files.  */
> 
> 
> Ciao,
> Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-binutils-Adds-support-for-loongarch-registers-in-cor.diff
Type: text/x-patch
Size: 1220 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210807/dcad727d/attachment.bin>


More information about the Binutils mailing list