qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 10/15] target/riscv: Add a riscv_cpu_is_32bit() helper fun


From: Richard Henderson
Subject: Re: [PATCH v2 10/15] target/riscv: Add a riscv_cpu_is_32bit() helper function
Date: Wed, 9 Dec 2020 09:59:33 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 12/8/20 4:56 PM, Alistair Francis wrote:
> +bool riscv_cpu_is_32bit(CPURISCVState *env)
> +{
> +    if (env->misa & RV64) {
> +        return false;
> +    }
> +
> +    return true;

Is this ever going to more than

    return !(env->misa & RV64);

?


r~



reply via email to

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