[Lldb-commits] [PATCH] D13282: [MIPS] Emulate microMIPS instructions

Bhushan Attarde via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 30 03:00:25 PDT 2015


bhushan created this revision.
bhushan added reviewers: clayborg, tberghammer.
bhushan added subscribers: lldb-commits, nitesh.jain, mohit.bhakkad, sagar, jaydeep.
bhushan set the repository for this revision to rL LLVM.

This patch includes:

1. Emulation of prologue/epilogue and branch instructions for microMIPS.

2. Setting up alternate disassembler (to be used for microMIPS).
So there will be two disassembler instances, one for microMIPS and other for MIPS.
Appropriate disassembler will be used based on the address class of instruction address.

3. Some of the branch instructions does not have fixed sized delay slot, that means delay slot instruction can be of 2-byte or 4-byte.
For this "m_next_inst_size" has been introduced which stores the size of next instruction (i.e size of delay slot instruction in case of branch).
This can be used wherever the size of next instruction is required.

4. A minor change to use mips32 register names instead of mips64 names.

Repository:
  rL LLVM

http://reviews.llvm.org/D13282

Files:
  source/Plugins/ABI/SysV-mips/ABISysV_mips.h
  source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp
  source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13282.36077.patch
Type: text/x-patch
Size: 34174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150930/ff6f7a84/attachment-0001.bin>


More information about the lldb-commits mailing list