[lldb-dev] elf flags information in ArchSpec

Vince Harron vince at nethacker.com
Wed Apr 29 09:00:23 PDT 2015


This sounds good to me and I think makes sense for ARM as well (based on my
understanding).  But the real question is what Greg/Jim/ec think.

Vince


On Wed, Apr 29, 2015 at 6:00 AM, Bhushan Attarde <Bhushan.Attarde at imgtec.com
> wrote:

>  Hi,
>
>
>
> We are planning to implement support for various MIPS ABIs (O32, N32, O64
> and N64) and application specific extensions (ASE) like DSP and SIMD.
>
> Additionally we are planning to implement microMIPS ISA as an extension to
> the existing MIPS32/64 bit cores.
>
>
>
> Currently there are around 20 MIPS cores added in the ArchSpec.
>
> If we consider the various combinations of ABI+ASE+Core then number of
> cores for MIPS in (ArchSpec::Core) would increase significantly.
>
> We would like to keep the number of base cores (mips32, mips32r2, mips64
> etc.) as it is and evaluate ABIs/ASEs dynamically using
> elf::ELFHeader::e_flags.
>
>
>
> We would need to extend the ArchSpec with the information contained in
> elf::ELFHeader::e_flags.
>
>
>
> ArchSpec will have say "m_flags", which will be set to
> elf::ELFHeader::e_flags.
>
>
>
> Then this information can be used in
>
> - ABI plugin to know the ABI contained in the ELF
>
> - EmulateInstruction plugin to know the ASE (MicroMips for example) and
> then  Emulate the instructions accordingly.
>
>
>
>
>
> Please let us know your thoughts on this.
>
>
>
> -Bhushan
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150429/3b2cdc9b/attachment.html>


More information about the lldb-dev mailing list