[Top][All Lists]

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

Re: [Qemu-riscv] RISC-V: qemu should provide different "model" strings i

From: Alistair Francis
Subject: Re: [Qemu-riscv] RISC-V: qemu should provide different "model" strings in DT for RV64 and RV32
Date: Mon, 6 May 2019 14:33:29 +0000

On Sun, 2019-05-05 at 23:03 +0200, Karsten Merker wrote:
> Hello,
> while working on RISC-V support for the Debian flash-kernel package
> I have stumbled over a potential problem with the "model" string
> that qemu sets in the DT that it generates for the "virt" machine,
> namely "riscv-virtio,qemu".
> Some tools, among them flash-kernel, use the "model" string to
> determine on which specific type of hardware they are running and
> perform corresponding hardware-specific actions.  It looks like
> qemu uses the same model string for both RV64 and RV32, which
> makes it impossible to differentiate between the two. I would
> therefore like to propose to make the model-string
> XLEN-dependent, i.e. "riscv64-virtio,qemu" respectively
> "riscv32-virtio,qemu".

This sounds fine to me.

Is there anything that already relies on the "riscv-virtio,qemu" compat
string? Maybe we can keep that and add a 32/64 bit one so we don't
break anything that is already working.


> Regards,
> Karsten

reply via email to

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