[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-riscv] RISC-V: qemu should provide different "model" strings in DT
From: |
Karsten Merker |
Subject: |
[Qemu-riscv] RISC-V: qemu should provide different "model" strings in DT for RV64 and RV32 |
Date: |
Sun, 5 May 2019 23:03:43 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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".
Regards,
Karsten
--
Ich widerspreche hiermit ausdrücklich der Nutzung sowie der
Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung
sowie der Markt- oder Meinungsforschung.
- [Qemu-riscv] RISC-V: qemu should provide different "model" strings in DT for RV64 and RV32,
Karsten Merker <=