[LLDB][RISCV] Add more instruction decode and execute for EmulateInstructionRISCV
authorEmmmer <yjhdandan@163.com>
Sat, 27 Aug 2022 14:40:02 +0000 (22:40 +0800)
committerEmmmer <yjhdandan@163.com>
Fri, 2 Sep 2022 02:17:09 +0000 (10:17 +0800)
commitff7b876aa75d1d4df581ada78befb707dfdbb129
treeaf02f01ed175da52b657a233780b540c607aa1dd
parent4db9edfdb6af278671d72d06f626d8c85d806eef
[LLDB][RISCV] Add more instruction decode and execute for EmulateInstructionRISCV

Add:
- most of instructions from RVI base instructions set.
- some instruction decode tests from objdump.

Further work:
- implement riscv imac extension.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D132789
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
lldb/unittests/Instruction/RISCV/TestRISCVEmulator.cpp