mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
target/riscv: deprecate capital 'Z' CPU properties
At this moment there are eleven CPU extension properties that starts with capital 'Z': Zifencei, Zicsr, Zihintntl, Zihintpause, Zawrs, Zfa, Zfh, Zfhmin, Zve32f, Zve64f and Zve64d. All other extensions are named with lower-case letters. We want all properties to be named with lower-case letters since it's consistent with the riscv-isa string that we create in the FDT. Having these 11 properties to be exceptions can be confusing. Deprecate all of them. Create their lower-case counterpart to be used as maintained CPU properties. When trying to use any deprecated property a warning message will be displayed, recommending users to switch to the lower-case variant: ./build/qemu-system-riscv64 -M virt -cpu rv64,Zifencei=true --nographic qemu-system-riscv64: warning: CPU property 'Zifencei' is deprecated. Please use 'zifencei' instead This will give users some time to change their scripts before we remove the capital 'Z' properties entirely. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Message-ID: <20231009112817.8896-2-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
committed by
Alistair Francis
parent
614c9466a2
commit
8043effd9b
@ -340,6 +340,29 @@ of generic CPUs: rv32 and rv64 as default CPUs and 'max' as a feature complete
|
||||
CPU for both 32 and 64 bit builds. Users are then discouraged to use the 'any'
|
||||
CPU type starting in 8.2.
|
||||
|
||||
RISC-V CPU properties which start with capital 'Z' (since 8.2)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
All RISC-V CPU properties which start with capital 'Z' are being deprecated
|
||||
starting in 8.2. The reason is that they were wrongly added with capital 'Z'
|
||||
in the past. CPU properties were later added with lower-case names, which
|
||||
is the format we want to use from now on.
|
||||
|
||||
Users which try to use these deprecated properties will receive a warning
|
||||
recommending to switch to their stable counterparts:
|
||||
|
||||
- "Zifencei" should be replaced with "zifencei"
|
||||
- "Zicsr" should be replaced with "zicsr"
|
||||
- "Zihintntl" should be replaced with "zihintntl"
|
||||
- "Zihintpause" should be replaced with "zihintpause"
|
||||
- "Zawrs" should be replaced with "zawrs"
|
||||
- "Zfa" should be replaced with "zfa"
|
||||
- "Zfh" should be replaced with "zfh"
|
||||
- "Zfhmin" should be replaced with "zfhmin"
|
||||
- "Zve32f" should be replaced with "zve32f"
|
||||
- "Zve64f" should be replaced with "zve64f"
|
||||
- "Zve64d" should be replaced with "zve64d"
|
||||
|
||||
Block device options
|
||||
''''''''''''''''''''
|
||||
|
||||
|
Reference in New Issue
Block a user