On 10/16/20 8:51 AM, Huacai Chen wrote:
From: Jiaxun Yang <jiaxun.y...@flygoat.com>
LDC2/SDC2 opcodes have been rewritten as "load & store with offset"
group of instructions by loongson-ext ASE.
This patch add implementation of these instructions:
gslbx: load 1 bytes to GPR
gslhx: load 2 bytes to GPR
gslwx: load 4 bytes to GPR
gsldx: load 8 bytes to GPR
gslwxc1: load 4 bytes to FPR
gsldxc1: load 8 bytes to FPR
gssbx: store 1 bytes from GPR
gsshx: store 2 bytes from GPR
gsswx: store 4 bytes from GPR
gssdx: store 8 bytes from GPR
gsswxc1: store 4 bytes from FPR
gssdxc1: store 8 bytes from FPR
Details of Loongson-EXT is here:
https://github.com/FlyGoat/loongson-insn/blob/master/loongson-ext.md
Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
Signed-off-by: Huacai Chen <che...@lemote.com>
---
target/mips/translate.c | 179 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 179 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>