ghidra icon indicating copy to clipboard operation
ghidra copied to clipboard

Fix two bugs in LoongArch sleigh code

Open jiegec opened this issue 1 year ago • 1 comments

Add missing csr77 to LoongArch, and fix csrxchg definition: The CSRXCHG instruction writes the old value of the general register rd to the bits of the specified CSR corresponding to the write mask of 1 according to the write mask information stored in the general register rj. The rest of the bits in the CSR remain unchanged, and the old value of the CSR is updated to the general register rd..

jiegec avatar Dec 19 '23 02:12 jiegec

That missing register needs to get fixed. I'll try to get this put in asap.

GhidorahRex avatar Dec 19 '23 12:12 GhidorahRex