qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC 01/15] target/riscv: reformat @sh format encoding for B-extensi


From: Richard Henderson
Subject: Re: [RFC 01/15] target/riscv: reformat @sh format encoding for B-extension
Date: Thu, 19 Nov 2020 11:03:46 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 11/18/20 12:29 AM, frank.chang@sifive.com wrote:
> -slli     00.... ......    ..... 001 ..... 0010011 @sh
> -srli     00.... ......    ..... 101 ..... 0010011 @sh
> -srai     01.... ......    ..... 101 ..... 0010011 @sh
> +slli     000000 ......    ..... 001 ..... 0010011 @sh
> +srli     000000 ......    ..... 101 ..... 0010011 @sh
> +srai     010000 ......    ..... 101 ..... 0010011 @sh

We need at least 7 bits here for rv128, if we ever get around to it.  The code
in trans_slli et al already eliminates numbers that are two large.

In the rvb draft, only 5 bits are used in the uppermost field.  Let's leave it
at that.


r~



reply via email to

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