On 8/14/22 09:55, WANG Xuerui wrote:
From: WANG Xuerui <g...@xen0n.name>
The only LoongArch CPU implemented is modeled after the Loongson 3A5000,
but it is not the real thing, ...
The 3A5000 is the SoC, as far as I could find, and the documentation of that says the core
is named the la464.
In general, high-fidelity models can and should be named after the real
hardware model, while generic emulation-oriented models should be named
after ISA levels.
This wasn't intended to be a generic emulation model, as far as I know. There are missing
features, but presumably those would eventually be filled in.
For now, the best reference for LoongArch ISA levels
is the revision number of the LoongArch ISA Manual, of which v1.00 is
still the latest. (v1.01 and v1.02 are minor revisions without
substantive change.)
As defined by various specs, the vendor and model names are also
reflected in respective CSRs, and are 8 bytes long. So, rename "la464"
to "qemu64-v1.00", with "QEMU64" as vendor name and "v1.00" as model
name.
Eh, I suppose. I'm not really keen on this though, as I would presume there will be
eventual forward progress on completing the real cpu model. We simply won't give any
compatibility guarantees for loongarch until we are ready to do so.
r~