Hi Alistair,
It seems that there is other indentation problem in cpu.c. Maybe they
can be fixed together.
/* Do some ISA extension error checking */
if(cpu->cfg.ext_i&& cpu->cfg.ext_e) {
error_setg(errp,
"I and E extensions are incompatible");
return;
}
if(!cpu->cfg.ext_i&& !cpu->cfg.ext_e) {
error_setg(errp,
"Either I or E extension must be set");
return;
}
Regards,
Weiwei Li
在 2022/3/15 下午2:40, Alistair Francis 写道:
> From: Alistair Francis <alistair.francis@wdc.com>
>
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> target/riscv/cpu.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index ddda4906ff..a4120c7fb4 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -709,11 +709,11 @@ static void riscv_cpu_set_irq(void *opaque, int irq, int level)
> case IRQ_S_EXT:
> case IRQ_VS_EXT:
> case IRQ_M_EXT:
> - if (kvm_enabled()) {
> + if (kvm_enabled()) {
> kvm_riscv_set_irq(cpu, irq, level);
> - } else {
> + } else {
> riscv_cpu_update_mip(cpu, 1 << irq, BOOL_TO_MASK(level));
> - }
> + }
> break;
> default:
> g_assert_not_reached();