[PATCH 00/12] arm: OMAP: Remove some dead code

Peter Maydell posted 12 patches 2 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260512203414.3633237-1-peter.maydell@linaro.org
Maintainers: Peter Maydell <peter.maydell@linaro.org>
hw/arm/omap1.c        |  84 +-----
hw/dma/omap_dma.c     | 666 ++++--------------------------------------
hw/gpio/omap_gpio.c   |   6 -
hw/misc/omap_clk.c    |   9 +-
include/hw/arm/omap.h | 252 +---------------
5 files changed, 65 insertions(+), 952 deletions(-)
[PATCH 00/12] arm: OMAP: Remove some dead code
Posted by Peter Maydell 2 weeks, 3 days ago
The arm OMAP SoC code still has some remnants of support for other
SoCs in the family that we used to implement, and bits that were
there for features that were never implemented and we're hardly
likely to implement now.  This patchset removes some of that dead
code.  (I noticed this because I was looking at the hw_error() calls
and realized they were all in code that was dead or otherwise not
needed any more. Then I realized there was actually quite a lot
of dead code here...)

The OMAP code is still old and crufty, but at least this is
900 lines worth of it that we can just delete without even
having to think about updating it :-)

thanks
-- PMM

Peter Maydell (12):
  hw/arm/omap: Remove omap_mpu_model remnants
  hw/arm/omap: Remove unused omap_mpuio functions
  hw/arm/omap: Remove stray unused prototype
  hw/arm/omap: Remove unused omap1_dma_irq_map[] entries
  hw/arm/omap: Delete unused #defines
  hw/arm/omap: Remove unused wakeup irq
  hw/dma/omap_dma: Remove support for dma_3_0 and dma_3_2
  hw/dma/omap_dma: Fold omap_dma_sys_read() and omap_dma_sys_write()
    into callers
  hw/dma/omap_dma: Remove omap_3_1_compatible_disable flag
  hw/dma/omap_dma: Remove 3.1 mapping handling
  hw/dma/omap_dma: Remove unused ifdeffed out code
  hw/dma/omap_dma: Drop model argument to omap_dma_init()

 hw/arm/omap1.c        |  84 +-----
 hw/dma/omap_dma.c     | 666 ++++--------------------------------------
 hw/gpio/omap_gpio.c   |   6 -
 hw/misc/omap_clk.c    |   9 +-
 include/hw/arm/omap.h | 252 +---------------
 5 files changed, 65 insertions(+), 952 deletions(-)

-- 
2.43.0
Re: [PATCH 00/12] arm: OMAP: Remove some dead code
Posted by Peter Maydell 4 days, 7 hours ago
On Tue, 12 May 2026 at 21:34, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> The arm OMAP SoC code still has some remnants of support for other
> SoCs in the family that we used to implement, and bits that were
> there for features that were never implemented and we're hardly
> likely to implement now.  This patchset removes some of that dead
> code.  (I noticed this because I was looking at the hw_error() calls
> and realized they were all in code that was dead or otherwise not
> needed any more. Then I realized there was actually quite a lot
> of dead code here...)

> Peter Maydell (12):
>   hw/arm/omap: Remove omap_mpu_model remnants
>   hw/arm/omap: Remove unused omap_mpuio functions
>   hw/arm/omap: Remove stray unused prototype
>   hw/arm/omap: Remove unused omap1_dma_irq_map[] entries
>   hw/arm/omap: Delete unused #defines
>   hw/arm/omap: Remove unused wakeup irq
>   hw/dma/omap_dma: Remove support for dma_3_0 and dma_3_2
>   hw/dma/omap_dma: Fold omap_dma_sys_read() and omap_dma_sys_write()
>     into callers
>   hw/dma/omap_dma: Remove omap_3_1_compatible_disable flag
>   hw/dma/omap_dma: Remove 3.1 mapping handling
>   hw/dma/omap_dma: Remove unused ifdeffed out code
>   hw/dma/omap_dma: Drop model argument to omap_dma_init()

I've applied all but patch 11 to target-arm.next; I'll resend
11 plus an extra patch to fix the resulting misindents.

thanks
-- PMM