qemu-devel
[Top][All Lists]
Advanced

[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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]