mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw: Replace anti-social QOM type names
Several QOM type names contain ',':
ARM,bitband-memory
etraxfs,pic
etraxfs,serial
etraxfs,timer
fsl,imx25
fsl,imx31
fsl,imx6
fsl,imx6ul
fsl,imx7
grlib,ahbpnp
grlib,apbpnp
grlib,apbuart
grlib,gptimer
grlib,irqmp
qemu,register
SUNW,bpp
SUNW,CS4231
SUNW,DBRI
SUNW,DBRI.prom
SUNW,fdtwo
SUNW,sx
SUNW,tcx
xilinx,zynq_slcr
xlnx,zynqmp
xlnx,zynqmp-pmu-soc
xlnx,zynq-xadc
These are all device types. They can't be plugged with -device /
device_add, except for xlnx,zynqmp-pmu-soc, and I doubt that one
actually works.
They *can* be used with -device / device_add to request help.
Usability is poor, though: you have to double the comma, like this:
$ qemu-system-x86_64 -device SUNW,,fdtwo,help
Trap for the unwary. The fact that this was broken in
device-introspect-test for more than six years until commit e27bd49876
fixed it demonstrates that "the unwary" includes seasoned developers.
One QOM type name contains ' ': "ICH9 SMB". Because having to
remember just one way to quote would be too easy.
Rename the "SUNW,FOO types to "sun-FOO". Summarily replace ',' and '
' by '-' in the other type names.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210304140229.575481-2-armbru@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fe9f70a1c3
commit
e178113ff6
27 changed files with 40 additions and 40 deletions
|
@ -32,14 +32,14 @@
|
|||
*/
|
||||
|
||||
/* IRQMP */
|
||||
#define TYPE_GRLIB_IRQMP "grlib,irqmp"
|
||||
#define TYPE_GRLIB_IRQMP "grlib-irqmp"
|
||||
|
||||
void grlib_irqmp_ack(DeviceState *dev, int intno);
|
||||
|
||||
/* GPTimer */
|
||||
#define TYPE_GRLIB_GPTIMER "grlib,gptimer"
|
||||
#define TYPE_GRLIB_GPTIMER "grlib-gptimer"
|
||||
|
||||
/* APB UART */
|
||||
#define TYPE_GRLIB_APB_UART "grlib,apbuart"
|
||||
#define TYPE_GRLIB_APB_UART "grlib-apbuart"
|
||||
|
||||
#endif /* GRLIB_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue