[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V14 2/8] target/mips: Add loongson-ext lswc2 group of instruc
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH V14 2/8] target/mips: Add loongson-ext lswc2 group of instructions (Part 1) |
Date: |
Fri, 16 Oct 2020 17:12:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 10/16/20 8:51 AM, Huacai Chen wrote:
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
LWC2 & SWC2 have been rewritten by Loongson EXT vendor ASE
as "load/store quad word" and "shifted load/store" groups of
instructions.
This patch add implementation of these instructions:
gslq: load 16 bytes to GPR
gssq: store 16 bytes from GPR
gslqc1: load 16 bytes to FPR
gssqc1: store 16 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.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
target/mips/translate.c | 86 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
Build failure:
target/mips/translate.c: In function ‘gen_loongson_lswc2’:
target/mips/translate.c:5928:14: error: unused variable ‘fp0’
[-Werror=unused-variable]
5928 | TCGv_i32 fp0;
| ^~~
target/mips/translate.c:5927:18: error: unused variable ‘t2’
[-Werror=unused-variable]
5927 | TCGv t0, t1, t2;
| ^~
target/mips/translate.c:5927:14: error: unused variable ‘t1’
[-Werror=unused-variable]
5927 | TCGv t0, t1, t2;
| ^~
- [PATCH V14 0/8] mips: Add Loongson-3 machine support, Huacai Chen, 2020/10/16
- [PATCH V14 1/8] target/mips: Fix PageMask with variable page size, Huacai Chen, 2020/10/16
- [PATCH V14 2/8] target/mips: Add loongson-ext lswc2 group of instructions (Part 1), Huacai Chen, 2020/10/16
- Re: [PATCH V14 2/8] target/mips: Add loongson-ext lswc2 group of instructions (Part 1),
Philippe Mathieu-Daudé <=
- [PATCH V14 3/8] target/mips: Add loongson-ext lswc2 group of instructions (Part 2), Huacai Chen, 2020/10/16
- [PATCH V14 4/8] target/mips: Add loongson-ext lsdc2 group of instructions, Huacai Chen, 2020/10/16
- [PATCH V14 5/8] hw/mips: Implement fw_cfg_arch_key_name(), Huacai Chen, 2020/10/16
- [PATCH V14 6/8] hw/mips: Add Loongson-3 boot parameter helpers, Huacai Chen, 2020/10/16
- [PATCH V14 7/8] hw/mips: Add Loongson-3 machine support, Huacai Chen, 2020/10/16