[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table |
Date: |
Thu, 21 Jun 2018 16:15:39 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 06/20/2018 05:05 AM, Yongbok Kim wrote:
> From: Yongbok Kim <address@hidden>
>
> Add nanoMIPS OPCODE table
>
> Reference:
> nanoMIPS Base ISA Technical Reference Manual
>
> Signed-off-by: Yongbok Kim <address@hidden>
> ---
> target/mips/mips-defs.h | 4 +
> target/mips/translate.c | 670
> ++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 674 insertions(+)
I realize it's newish, and the mips target has a *lot* of legacy code and
decode, but have you looked at qemu/scripts/decodetree.py? I think it would
make a lot of this code significantly simpler.
How about simply splitting out this new code to a new file? After your patch,
target/mips/translate.c weighs in at 23698 lines; you're adding over 3000 to
that in this patch set.
That said, this patch matches a few spot checks I did of the manual.
Reviewed-by: Richard Henderson <address@hidden>
r~
- [Qemu-devel] [PATCH 00/35] nanoMIPS, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 01/35] target/mips: Raise a RI when given fs is n/a from CTC1, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 02/35] target/mips: Fix microMIPS on reset, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table, Yongbok Kim, 2018/06/20
- Re: [Qemu-devel] [PATCH 03/35] target/mips: Add nanoMIPS OPCODE table,
Richard Henderson <=
- [Qemu-devel] [PATCH 04/35] target/mips: Add decode_nanomips_opc(), Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 05/35] target/mips: Add nanoMIPS 16bit ld/st instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 06/35] target/mips: Add nanoMIPS pool16c instructions, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 07/35] target/mips: Add nanoMIPS save and restore, Yongbok Kim, 2018/06/20
- [Qemu-devel] [PATCH 08/35] target/mips: Add nanoMIPS 32bit instructions, Yongbok Kim, 2018/06/20