[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/6] target/mips: Convert Loongson LEXT opcodes to decodetree
From: |
Jiaxun Yang |
Subject: |
Re: [PATCH 0/6] target/mips: Convert Loongson LEXT opcodes to decodetree |
Date: |
Wed, 13 Jan 2021 10:15:17 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
在 2021/1/13 上午5:54, Philippe Mathieu-Daudé 写道:
Loongson is next step in the "MIPS decodetree conversion" epic.
Start with the simplest extension.
The diffstat addition comes from the TCG functions expanded.
The code is easier to review now.
IMO this is also a good template to show how easy a decodetree
conversion can be (and how nice the .decode file is to review) :P
Please review,
Phil.
Based-on: <20210112184156.2014305-1-f4bug@amsat.org>
"decodetree: Allow 'dot' in opcode names"
Philippe Mathieu-Daudé (6):
target/mips: Re-introduce OPC_ADDUH_QB_DSP and OPC_MUL_PH_DSP
target/mips: Convert Loongson DDIV.G opcodes to decodetree
target/mips: Convert Loongson DIV.G opcodes to decodetree
target/mips: Convert Loongson [D]DIVU.G opcodes to decodetree
target/mips: Convert Loongson [D]MOD[U].G opcodes to decodetree
target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree
target/mips/translate.h | 1 +
target/mips/godson2.decode | 29 +++
target/mips/loong-ext.decode | 30 +++
Hi Philippe,
Thanks for the template!
Just a small question, where should we perform ISA availability check?
Before calling generated decoder or after decoded?
Loong-EXT is a super set of Loongson2F's Godson2 and MMI instructions,
how could we tell it?
Thanks.
- Jiaxun
target/mips/loong_translate.c | 334 ++++++++++++++++++++++++++++++++++
target/mips/translate.c | 287 ++---------------------------
target/mips/meson.build | 3 +
6 files changed, 409 insertions(+), 275 deletions(-)
create mode 100644 target/mips/godson2.decode
create mode 100644 target/mips/loong-ext.decode
create mode 100644 target/mips/loong_translate.c
- Re: [PATCH 2/6] target/mips: Convert Loongson DDIV.G opcodes to decodetree, (continued)
- [PATCH 4/6] target/mips: Convert Loongson [D]DIVU.G opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/12
- [PATCH 3/6] target/mips: Convert Loongson DIV.G opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/12
- [PATCH 5/6] target/mips: Convert Loongson [D]MOD[U].G opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/12
- [PATCH 6/6] target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/12
- Re: [PATCH 0/6] target/mips: Convert Loongson LEXT opcodes to decodetree,
Jiaxun Yang <=
- Re: [PATCH 0/6] target/mips: Convert Loongson LEXT opcodes to decodetree, Richard Henderson, 2021/01/21