On 12/5/26 22:34, Peter Maydell wrote:
The omap1.c code has handling for an mpu_model field which is
an enum of which OMAP SoC model it is. We removed most of our
OMAP support some time ago, and now the only OMAP SoC we
implement is the OMAP310, which sets s->mpu_model = omap310
in omap310_mpu_init().

That makes all the handling for other settings of mpu_model dead
code; remove them.  This includes the omap GPIO device's mpu_model
property which we set but which the device makes no use of, and the
omap-id-e20 memory region (because the OMAP310 satisfies
cpu_is_omap15xx(), so never executed the old if() block).

Signed-off-by: Peter Maydell <[email protected]>
---
  hw/arm/omap1.c        | 28 ++--------------------------
  hw/gpio/omap_gpio.c   |  6 ------
  hw/misc/omap_clk.c    |  9 +--------
  include/hw/arm/omap.h | 18 ------------------
  4 files changed, 3 insertions(+), 58 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to