qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/12] aspeed: fixes and extensions
@ 2023-06-07  4:39 Cédric Le Goater
  2023-06-07  4:39 ` [PATCH v2 01/12] aspeed/hace: Initialize g_autofree pointer Cédric Le Goater
                   ` (11 more replies)
  0 siblings, 12 replies; 40+ messages in thread
From: Cédric Le Goater @ 2023-06-07  4:39 UTC (permalink / raw)
  To: qemu-arm
  Cc: qemu-devel, Peter Maydell, Joel Stanley, Andrew Jeffery,
	Philippe Mathieu-Daudé, Cédric Le Goater

Hello,

This series fixes issues spotted by Coverity and adds a couple of
improvements for the machine definition.

The first is to offer the capability to define all CS of all SPI
controllers without introducing new machine types, using a blockdev on
the command line :

    -blockdev node-name=fmc0,driver=file,filename=./flash.img
    -device mx66u51235f,addr=0x0,bus=ssi.0,drive=fmc0

instead of using drives which relies on the command line order.
Ultimately, we will get rid of drive_get(IF_MTD, ...) but we are not
there yet. For this, SSIPeripheral is extended with an "addr"
property.

A second extension is the introduction of a "bmc-console" machine
option to let the user define the default UART device of the machine
from the QEMU command line :

    -M ast2500-evb,bmc-console=uart3

Last, a new "vfp-d32" CPU property is added to ARM CPUs to model FPUs
implementing VFPv4 without NEON support and with 16 64-bit FPU
registers (and not 32 registers). This is the case for the Cortex A7
of the Aspeed AST2600 SoC. I hope I got it right this time.

Thanks,

C.

Changes in v2:

  - changed "addr" property to a uint8_t
  - renamed "uart" machine option to "bmc-console" 

Cédric Le Goater (12):
  aspeed/hace: Initialize g_autofree pointer
  aspeed: Introduce a boot_rom region at the machine level
  aspeed: Use the boot_rom region of the fby35 machine
  hw/ssi: Add an "addr" property to SSIPeripheral
  hw/ssi: Introduce a ssi_get_cs() helper
  aspeed/smc: Wire CS lines at reset
  hw/ssi: Check for duplicate addresses
  aspeed: Create flash devices only when defaults are enabled
  m25p80: Introduce an helper to retrieve the BlockBackend of a device
  aspeed: Get the BlockBackend of FMC0 from the flash device
  aspeed: Introduce a "bmc-console" machine option
  target/arm: Allow users to set the number of VFP registers

 docs/system/arm/aspeed.rst          | 11 +++++
 include/hw/block/flash.h            |  4 ++
 include/hw/ssi/ssi.h                |  5 +++
 target/arm/cpu.h                    |  2 +
 hw/arm/aspeed.c                     | 69 ++++++++++++++++++++++-------
 hw/arm/aspeed_ast2600.c             |  2 +
 hw/arm/fby35.c                      | 29 ++++++------
 hw/arm/stellaris.c                  |  4 +-
 hw/arm/xilinx_zynq.c                |  1 +
 hw/arm/xlnx-versal-virt.c           |  1 +
 hw/arm/xlnx-zcu102.c                |  2 +
 hw/block/m25p80.c                   |  6 +++
 hw/microblaze/petalogix_ml605_mmu.c |  1 +
 hw/misc/aspeed_hace.c               |  2 +-
 hw/ssi/aspeed_smc.c                 |  8 ++++
 hw/ssi/ssi.c                        | 43 ++++++++++++++++++
 target/arm/cpu.c                    | 32 +++++++++++++
 17 files changed, 190 insertions(+), 32 deletions(-)

-- 
2.40.1



^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2023-06-29 16:09 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07  4:39 [PATCH v2 00/12] aspeed: fixes and extensions Cédric Le Goater
2023-06-07  4:39 ` [PATCH v2 01/12] aspeed/hace: Initialize g_autofree pointer Cédric Le Goater
2023-06-07  7:53   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 02/12] aspeed: Introduce a boot_rom region at the machine level Cédric Le Goater
2023-06-07  8:04   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 03/12] aspeed: Use the boot_rom region of the fby35 machine Cédric Le Goater
2023-06-07  8:05   ` Joel Stanley
2023-06-29 10:57   ` Philippe Mathieu-Daudé
2023-06-07  4:39 ` [PATCH v2 04/12] hw/ssi: Add an "addr" property to SSIPeripheral Cédric Le Goater
2023-06-07  8:06   ` Joel Stanley
2023-06-07  8:28     ` Philippe Mathieu-Daudé
2023-06-07 14:15       ` Cédric Le Goater
2023-06-29 10:56         ` Philippe Mathieu-Daudé
2023-06-29 16:08           ` Cédric Le Goater
2023-06-07  4:39 ` [PATCH v2 05/12] hw/ssi: Introduce a ssi_get_cs() helper Cédric Le Goater
2023-06-07  8:10   ` Joel Stanley
2023-06-29 11:09   ` Philippe Mathieu-Daudé
2023-06-29 16:07     ` Cédric Le Goater
2023-06-07  4:39 ` [PATCH v2 06/12] aspeed/smc: Wire CS lines at reset Cédric Le Goater
2023-06-07 10:49   ` Joel Stanley
2023-06-07 17:05     ` Cédric Le Goater
2023-06-29 14:46   ` Cédric Le Goater
2023-06-07  4:39 ` [PATCH v2 07/12] hw/ssi: Check for duplicate addresses Cédric Le Goater
2023-06-07 10:52   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 08/12] aspeed: Create flash devices only when defaults are enabled Cédric Le Goater
2023-06-07  4:39 ` [PATCH v2 09/12] m25p80: Introduce an helper to retrieve the BlockBackend of a device Cédric Le Goater
2023-06-07 10:55   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 10/12] aspeed: Get the BlockBackend of FMC0 from the flash device Cédric Le Goater
2023-06-07 10:55   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 11/12] aspeed: Introduce a "bmc-console" machine option Cédric Le Goater
2023-06-07 10:58   ` Joel Stanley
2023-06-07  4:39 ` [PATCH v2 12/12] target/arm: Allow users to set the number of VFP registers Cédric Le Goater
2023-06-07 11:06   ` Joel Stanley
2023-06-07 14:19     ` Cédric Le Goater
2023-06-08 10:19   ` Peter Maydell
2023-06-19 12:47   ` Mads Ynddal
2023-06-19 13:09     ` Cédric Le Goater
2023-06-19 13:46       ` Mads Ynddal
2023-06-19 13:41     ` Peter Maydell
2023-06-19 13:54       ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).