[RISU PATCH v2 0/5] Add LoongArch architectures support

Song Gao posted 5 patches 1 year, 7 months ago
Failed in applying to current master (apply log)
loongarch64.risu           | 612 +++++++++++++++++++++++++++++++++++++
risu.c                     |  16 +-
risu_loongarch64.c         |  50 +++
risu_reginfo_loongarch64.c | 183 +++++++++++
risu_reginfo_loongarch64.h |  25 ++
risugen                    |   2 +-
risugen_loongarch64.pm     | 509 ++++++++++++++++++++++++++++++
test_loongarch64.s         |  92 ++++++
8 files changed, 1487 insertions(+), 2 deletions(-)
create mode 100644 loongarch64.risu
create mode 100644 risu_loongarch64.c
create mode 100644 risu_reginfo_loongarch64.c
create mode 100644 risu_reginfo_loongarch64.h
create mode 100644 risugen_loongarch64.pm
create mode 100644 test_loongarch64.s
[RISU PATCH v2 0/5] Add LoongArch architectures support
Posted by Song Gao 1 year, 7 months ago
hi,

This series adds LoongArch architectures support, we had tested two
mode:
1. LoongArch host server +  LoongArch host client;
2. LoongArch host server  + qemu client.

You can find all LoongArch instructions at [1].
This series not contains all LoongArch instructions,
such as pcadd, syscalls, rdtime and jumps.

[1]:
https://github.com/loongson/LoongArch-Documentation/releases/download/2022.08.12/LoongArch-Vol1-v1.02-EN.pdf

V2:

- rewrite write_mov_ri();
- get_risuop return a RisuOp;
- test again with 1 million instructions.

Thanks.
Song Gao

Song Gao (5):
  risu: Use alternate stack
  loongarch: Add LoongArch basic test support
  loongarch: Implement risugen module
  loongarch: Add risufile with loongarch instructions
  loongarch: Add block 'safefloat' and nanbox_s()

 loongarch64.risu           | 612 +++++++++++++++++++++++++++++++++++++
 risu.c                     |  16 +-
 risu_loongarch64.c         |  50 +++
 risu_reginfo_loongarch64.c | 183 +++++++++++
 risu_reginfo_loongarch64.h |  25 ++
 risugen                    |   2 +-
 risugen_loongarch64.pm     | 509 ++++++++++++++++++++++++++++++
 test_loongarch64.s         |  92 ++++++
 8 files changed, 1487 insertions(+), 2 deletions(-)
 create mode 100644 loongarch64.risu
 create mode 100644 risu_loongarch64.c
 create mode 100644 risu_reginfo_loongarch64.c
 create mode 100644 risu_reginfo_loongarch64.h
 create mode 100644 risugen_loongarch64.pm
 create mode 100644 test_loongarch64.s

-- 
2.31.1
Re: [RISU PATCH v2 0/5] Add LoongArch architectures support
Posted by Peter Maydell 1 year, 7 months ago
On Thu, 13 Oct 2022 at 09:28, Song Gao <gaosong@loongson.cn> wrote:
>
> hi,
>
> This series adds LoongArch architectures support, we had tested two
> mode:
> 1. LoongArch host server +  LoongArch host client;
> 2. LoongArch host server  + qemu client.
>
> You can find all LoongArch instructions at [1].
> This series not contains all LoongArch instructions,
> such as pcadd, syscalls, rdtime and jumps.
>
> [1]:
> https://github.com/loongson/LoongArch-Documentation/releases/download/2022.08.12/LoongArch-Vol1-v1.02-EN.pdf
>
> V2:
>
> - rewrite write_mov_ri();
> - get_risuop return a RisuOp;
> - test again with 1 million instructions.

Thanks; I've applied this to risu git. It looks like you didn't
fix the get_risuop return type, so I made that trivial change
when I applied the patches.

thanks
-- PMM