[Qemu-commits] [qemu/qemu] 40f27a: hw/input/pckbd: Open-code i8042_setup_a20_line() w...

2024-02-23 Thread Peter Maydell via Qemu-commits
  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 40f27a785f6b9d238f4b87c17c3ec8329dcde803
  
https://github.com/qemu/qemu/commit/40f27a785f6b9d238f4b87c17c3ec8329dcde803
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/i386/pc.c
M hw/input/pckbd.c
M include/hw/input/i8042.h

  Log Message:
  ---
  hw/input/pckbd: Open-code i8042_setup_a20_line() wrapper

Since the named GPIO lines are a "public" interface to the device,
we can directly call qdev_connect_gpio_out_named(), making it
consistent with how the other A20 input source (port92) is wired.

Suggested-by: Peter Maydell 
Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Yanan Wang 
Message-Id: <20211218130437.1516929-6-f4...@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé 


  Commit: 0068b069c3ffb9ac8e5ad56bf0c9d853bbfc3997
  
https://github.com/qemu/qemu/commit/0068b069c3ffb9ac8e5ad56bf0c9d853bbfc3997
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/core/sysbus.c
M hw/i386/kvmvapic.c
M hw/mips/mipssim.c
M hw/nvram/fw_cfg.c
M include/hw/sysbus.h

  Log Message:
  ---
  hw/sysbus: Inline and remove sysbus_add_io()

sysbus_add_io(...) is a simple wrapper to
memory_region_add_subregion(get_system_io(), ...).
It is used in 3 places; inline it directly.

Rationale: we want to move to an explicit I/O bus,
rather that an implicit one. Besides in heterogeneous
setup we can have more than one I/O bus.

Reviewed-by: Peter Maydell 
Message-Id: <20240216150441.45681-1-phi...@linaro.org>
[PMD: Include missing "exec/address-spaces.h" header]
Signed-off-by: Philippe Mathieu-Daudé 


  Commit: d0e870f4472b2f373a8d7e8cf88fd11b4da0e58c
  
https://github.com/qemu/qemu/commit/d0e870f4472b2f373a8d7e8cf88fd11b4da0e58c
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/ppc/ppc440_pcix.c
M hw/ppc/ppc4xx_pci.c

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Remove unused "hw/ppc/ppc.h" header

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: BALATON Zoltan 
Reviewed-by: Thomas Huth 
Message-Id: <20240215105017.57748-2-phi...@linaro.org>


  Commit: 4d641f36e7bd6e82177a35b6929d569bfd600d88
  
https://github.com/qemu/qemu/commit/4d641f36e7bd6e82177a35b6929d569bfd600d88
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/ppc/ppc440_bamboo.c
M hw/ppc/ppc440_pcix.c
M hw/ppc/ppc440_uc.c
M hw/ppc/ppc4xx_pci.c
M hw/ppc/sam460ex.c
A include/hw/pci-host/ppc4xx.h
M include/hw/ppc/ppc4xx.h

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Extract PCI host definitions to hw/pci-host/ppc4xx.h

Reviewed-by: BALATON Zoltan 
Reviewed-by: Thomas Huth 
Signed-off-by: Philippe Mathieu-Daudé 
Message-Id: <20240215105017.57748-3-phi...@linaro.org>


  Commit: 55abb29e6366f99ead5a2636d1f1a2fa85e2f844
  
https://github.com/qemu/qemu/commit/55abb29e6366f99ead5a2636d1f1a2fa85e2f844
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/pci-host/Kconfig
M hw/pci-host/meson.build
A hw/pci-host/ppc4xx_pci.c
M hw/pci-host/ppce500.c
M hw/pci-host/trace-events
M hw/ppc/Kconfig
M hw/ppc/meson.build
R hw/ppc/ppc4xx_pci.c
M hw/ppc/trace-events

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Move ppc4xx_pci.c to hw/pci-host/

ppc4xx_pci.c is moved from the target specific ppc_ss[] meson
source set to pci_ss[] which is common to all targets: the
object is built once.

Declare PPC4XX_PCI selector in pci-host/Kconfig.

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Thomas Huth 
Message-Id: <20240215105017.57748-4-phi...@linaro.org>


  Commit: 22dc8a47f9c68f98594449be713d4dde9389f960
  
https://github.com/qemu/qemu/commit/22dc8a47f9c68f98594449be713d4dde9389f960
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/pci-host/Kconfig
M hw/pci-host/meson.build
A hw/pci-host/ppc440_pcix.c
M hw/pci-host/trace-events
M hw/ppc/Kconfig
M hw/ppc/meson.build
R hw/ppc/ppc440_pcix.c
M hw/ppc/trace-events

  Log Message:
  ---
  hw/ppc/ppc440_pcix: Move ppc440_pcix.c to hw/pci-host/

ppc440_pcix.c is moved from the target specific ppc_ss[] meson
source set to pci_ss[] which is common to all targets: the
object is built once.

Reviewed-by: Thomas Huth 
Signed-off-by: Philippe Mathieu-Daudé 
Message-Id: <20240215105017.57748-5-phi...@linaro.org>


  Commit: 1f88173ab9dfa34e96f5baa10b83ccb528de3030
  
https://github.com/qemu/qemu/commit/1f88173ab9dfa34e96f5baa10b83ccb528de3030
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/ppc/spapr_cpu_core.c

  Log Message:
  ---
  hw/ppc/spapr_cpu: Use qdev_is_realized() instead of 

[Qemu-commits] [qemu/qemu] 40f27a: hw/input/pckbd: Open-code i8042_setup_a20_line() w...

2024-02-22 Thread Peter Maydell via Qemu-commits
  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 40f27a785f6b9d238f4b87c17c3ec8329dcde803
  
https://github.com/qemu/qemu/commit/40f27a785f6b9d238f4b87c17c3ec8329dcde803
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/i386/pc.c
M hw/input/pckbd.c
M include/hw/input/i8042.h

  Log Message:
  ---
  hw/input/pckbd: Open-code i8042_setup_a20_line() wrapper

Since the named GPIO lines are a "public" interface to the device,
we can directly call qdev_connect_gpio_out_named(), making it
consistent with how the other A20 input source (port92) is wired.

Suggested-by: Peter Maydell 
Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Yanan Wang 
Message-Id: <20211218130437.1516929-6-f4...@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé 


  Commit: 0068b069c3ffb9ac8e5ad56bf0c9d853bbfc3997
  
https://github.com/qemu/qemu/commit/0068b069c3ffb9ac8e5ad56bf0c9d853bbfc3997
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/core/sysbus.c
M hw/i386/kvmvapic.c
M hw/mips/mipssim.c
M hw/nvram/fw_cfg.c
M include/hw/sysbus.h

  Log Message:
  ---
  hw/sysbus: Inline and remove sysbus_add_io()

sysbus_add_io(...) is a simple wrapper to
memory_region_add_subregion(get_system_io(), ...).
It is used in 3 places; inline it directly.

Rationale: we want to move to an explicit I/O bus,
rather that an implicit one. Besides in heterogeneous
setup we can have more than one I/O bus.

Reviewed-by: Peter Maydell 
Message-Id: <20240216150441.45681-1-phi...@linaro.org>
[PMD: Include missing "exec/address-spaces.h" header]
Signed-off-by: Philippe Mathieu-Daudé 


  Commit: d0e870f4472b2f373a8d7e8cf88fd11b4da0e58c
  
https://github.com/qemu/qemu/commit/d0e870f4472b2f373a8d7e8cf88fd11b4da0e58c
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/ppc/ppc440_pcix.c
M hw/ppc/ppc4xx_pci.c

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Remove unused "hw/ppc/ppc.h" header

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: BALATON Zoltan 
Reviewed-by: Thomas Huth 
Message-Id: <20240215105017.57748-2-phi...@linaro.org>


  Commit: 4d641f36e7bd6e82177a35b6929d569bfd600d88
  
https://github.com/qemu/qemu/commit/4d641f36e7bd6e82177a35b6929d569bfd600d88
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/ppc/ppc440_bamboo.c
M hw/ppc/ppc440_pcix.c
M hw/ppc/ppc440_uc.c
M hw/ppc/ppc4xx_pci.c
M hw/ppc/sam460ex.c
A include/hw/pci-host/ppc4xx.h
M include/hw/ppc/ppc4xx.h

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Extract PCI host definitions to hw/pci-host/ppc4xx.h

Reviewed-by: BALATON Zoltan 
Reviewed-by: Thomas Huth 
Signed-off-by: Philippe Mathieu-Daudé 
Message-Id: <20240215105017.57748-3-phi...@linaro.org>


  Commit: 55abb29e6366f99ead5a2636d1f1a2fa85e2f844
  
https://github.com/qemu/qemu/commit/55abb29e6366f99ead5a2636d1f1a2fa85e2f844
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/pci-host/Kconfig
M hw/pci-host/meson.build
A hw/pci-host/ppc4xx_pci.c
M hw/pci-host/ppce500.c
M hw/pci-host/trace-events
M hw/ppc/Kconfig
M hw/ppc/meson.build
R hw/ppc/ppc4xx_pci.c
M hw/ppc/trace-events

  Log Message:
  ---
  hw/ppc/ppc4xx_pci: Move ppc4xx_pci.c to hw/pci-host/

ppc4xx_pci.c is moved from the target specific ppc_ss[] meson
source set to pci_ss[] which is common to all targets: the
object is built once.

Declare PPC4XX_PCI selector in pci-host/Kconfig.

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Thomas Huth 
Message-Id: <20240215105017.57748-4-phi...@linaro.org>


  Commit: 22dc8a47f9c68f98594449be713d4dde9389f960
  
https://github.com/qemu/qemu/commit/22dc8a47f9c68f98594449be713d4dde9389f960
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M MAINTAINERS
M hw/pci-host/Kconfig
M hw/pci-host/meson.build
A hw/pci-host/ppc440_pcix.c
M hw/pci-host/trace-events
M hw/ppc/Kconfig
M hw/ppc/meson.build
R hw/ppc/ppc440_pcix.c
M hw/ppc/trace-events

  Log Message:
  ---
  hw/ppc/ppc440_pcix: Move ppc440_pcix.c to hw/pci-host/

ppc440_pcix.c is moved from the target specific ppc_ss[] meson
source set to pci_ss[] which is common to all targets: the
object is built once.

Reviewed-by: Thomas Huth 
Signed-off-by: Philippe Mathieu-Daudé 
Message-Id: <20240215105017.57748-5-phi...@linaro.org>


  Commit: 1f88173ab9dfa34e96f5baa10b83ccb528de3030
  
https://github.com/qemu/qemu/commit/1f88173ab9dfa34e96f5baa10b83ccb528de3030
  Author: Philippe Mathieu-Daudé 
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
M hw/ppc/spapr_cpu_core.c

  Log Message:
  ---
  hw/ppc/spapr_cpu: Use qdev_is_realized() instead of