Skip to content

hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()

Philippe Mathieu-Daudé qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/i386/pc: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/i386/pc_sysfw.c+1 -11 reply
2/4hw/mips/malta: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/mips/malta.c+1 -10 replies
3/4hw/xtensa/xtfpga: Get pflash MemoryRegion with sysbus_mmio_get_region()hw/xtensa/xtfpga.c+2 -11 reply
4/4hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()hw/block/pflash_cfi01.c include/hw/block/flash.h+0 -60 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMax Filippov
1/4
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()

TYPE_PFLASH_CFI01 is a TYPE_SYS_BUS_DEVICE which registers its romd MemoryRegion with sysbus_init_mmio(), so we can use the generic sysbus_mmio_get_region() to get the region, no need for a specific pflash_cfi01_get_memory() helper.

First replace the few pflash_cfi01_get_memory() uses by sysbus_mmio_get_region(), then remove the now unused helper.

Philippe Mathieu-Daudé (4):
hw/i386/pc: Get pflash MemoryRegion with sysbus_mmio_get_region() hw/mips/malta: Get pflash MemoryRegion with sysbus_mmio_get_region() hw/xtensa/xtfpga: Get pflash MemoryRegion with
sysbus_mmio_get_region()
hw/block/pflash_cfi01: Remove pflash_cfi01_get_memory()

 include/hw/block/flash.h | 1 -
 hw/block/pflash_cfi01.c  | 5 -----
 hw/i386/pc_sysfw.c       | 2 +-
 hw/mips/malta.c          | 2 +-
 hw/xtensa/xtfpga.c       | 3 ++-
 5 files changed, 4 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2