qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 1d51bc: target/arm: Implement ID_PFR2


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 1d51bc: target/arm: Implement ID_PFR2
Date: Fri, 29 Jan 2021 09:28:28 -0800

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 1d51bc96cc4a9b2d31a3f4cb8442ce47753088e2
      
https://github.com/qemu/qemu/commit/1d51bc96cc4a9b2d31a3f4cb8442ce47753088e2
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M target/arm/cpu.h
    M target/arm/helper.c
    M target/arm/kvm64.c

  Log Message:
  -----------
  target/arm: Implement ID_PFR2

This was defined at some point before ARMv8.4, and will
shortly be used by new processor descriptions.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210120204400.1056582-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 54a78718be6dd5fc6b6201f84bef8de5ac3b3802
      
https://github.com/qemu/qemu/commit/54a78718be6dd5fc6b6201f84bef8de5ac3b3802
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M target/arm/helper.c

  Log Message:
  -----------
  target/arm: Conditionalize DBGDIDR

Only define the register if it exists for the cpu.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210120031656.737646-1-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 7848023ae43cf775fb211cc66bb2e17376ee23d3
      
https://github.com/qemu/qemu/commit/7848023ae43cf775fb211cc66bb2e17376ee23d3
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/xlnx-zcu102.c
    M tests/qtest/xlnx-can-test.c

  Log Message:
  -----------
  arm: rename xlnx-zcu102.canbusN properties

The properties to attach a CANBUS object to the xlnx-zcu102 machine have
a period in them.  We want to use periods in properties for compound QAPI types,
and besides the "xlnx-zcu102." prefix is both unnecessary and different
from any other machine property name.  Remove it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210118162537.779542-1-pbonzini@redhat.com
Reviewed-by: Vikram Garhwal <fnu.vikram@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: c97377652dfeef2e0373faa2cdc05548b1536d77
      
https://github.com/qemu/qemu/commit/c97377652dfeef2e0373faa2cdc05548b1536d77
  Author: Maxim Uvarov <maxim.uvarov@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/gpio/Kconfig
    A hw/gpio/gpio_pwr.c
    M hw/gpio/meson.build

  Log Message:
  -----------
  hw: gpio: implement gpio-pwr driver for qemu reset/poweroff

Implement gpio-pwr driver to allow reboot and poweroff machine.
This is simple driver with just 2 gpios lines. Current use case
is to reboot and poweroff virt machine in secure mode. Secure
pl066 gpio chip is needed for that.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: e61bde40dd7f96b383cf582cc8a14ce1d8609fce
      
https://github.com/qemu/qemu/commit/e61bde40dd7f96b383cf582cc8a14ce1d8609fce
  Author: Maxim Uvarov <maxim.uvarov@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/virt.c

  Log Message:
  -----------
  arm-virt: refactor gpios creation

No functional change. Just refactor code to better
support secure and normal world gpios.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: daa726d92604b72650d86ada01935e03a909d4dd
      
https://github.com/qemu/qemu/commit/daa726d92604b72650d86ada01935e03a909d4dd
  Author: Maxim Uvarov <maxim.uvarov@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M docs/system/arm/virt.rst
    M hw/arm/Kconfig
    M hw/arm/virt.c
    M include/hw/arm/virt.h

  Log Message:
  -----------
  arm-virt: add secure pl061 for reset/power down

Add secure pl061 for reset/power down machine from
the secure world (Arm Trusted Firmware). Connect it
with gpio-pwr driver.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
[PMM: Added mention of the new device to the documentation]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 1e5ce6e10a1deaec6044ba8ad75431e0424dbce9
      
https://github.com/qemu/qemu/commit/1e5ce6e10a1deaec6044ba8ad75431e0424dbce9
  Author: Hao Wu <wuhaotsh@google.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/misc/npcm7xx_pwm.c
    M tests/qtest/npcm7xx_pwm-test.c

  Log Message:
  -----------
  hw/misc: Fix arith overflow in NPCM7XX PWM module

Fix potential overflow problem when calculating pwm_duty.
1. Ensure p->cmr and p->cnr to be from [0,65535], according to the
   hardware specification.
2. Changed duty to uint32_t. However, since MAX_DUTY * (p->cmr+1)
   can excceed UINT32_MAX, we convert them to uint64_t in computation
   and converted them back to uint32_t.
   (duty is guaranteed to be <= MAX_DUTY so it won't overflow.)

Fixes: CID 1442342
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Doug Evans <dje@google.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20210127011142.2122790-1-wuhaotsh@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: a9dd161ff2f54446f0b0547447d8196699aca3e1
      
https://github.com/qemu/qemu/commit/a9dd161ff2f54446f0b0547447d8196699aca3e1
  Author: Philippe Mathieu-Daudé <f4bug@amsat.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M target/arm/helper.c

  Log Message:
  -----------
  target/arm: Replace magic value by MMU_DATA_LOAD definition

cpu_get_phys_page_debug() uses 'DATA LOAD' MMU access type.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210127232822.3530782-1-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 2b9f74efcc0f5db6ddd133560cfe063fe891fde1
      
https://github.com/qemu/qemu/commit/2b9f74efcc0f5db6ddd133560cfe063fe891fde1
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure
    M meson.build

  Log Message:
  -----------
  configure: Move preadv check to meson.build

Move the preadv availability check to meson.build.  This is what we
want to be doing for host-OS-feature-checks anyway, but it also fixes
a problem with building for macOS with the most recent XCode SDK on a
Catalina host.

On that configuration, 'preadv()' is provided as a weak symbol, so
that programs can be built with optional support for it and make a
runtime availability check to see whether the preadv() they have is a
working one or one which they must not call because it will
runtime-assert.  QEMU's configure test passes (unless you're building
with --enable-werror) because the test program using preadv()
compiles, but then QEMU crashes at runtime when preadv() is called,
with errors like:

  dyld: lazy symbol binding failed: Symbol not found: _preadv
    Referenced from: /Users/pm215/src/qemu/./build/x86/tests/test-replication
    Expected in: /usr/lib/libSystem.B.dylib

  dyld: Symbol not found: _preadv
    Referenced from: /Users/pm215/src/qemu/./build/x86/tests/test-replication
    Expected in: /usr/lib/libSystem.B.dylib

Meson's own function availability check has a special case for macOS
which adds '-Wl,-no_weak_imports' to the compiler flags, which forces
the test to require the real function, not the macOS-version-too-old
stub.

So this commit fixes the bug where macOS builds on Catalina currently
require --disable-werror.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210126155846.17109-1-peter.maydell@linaro.org


  Commit: 3812c0c4cbaf4b7b1be959ec6ca3303cdf92ca46
      
https://github.com/qemu/qemu/commit/3812c0c4cbaf4b7b1be959ec6ca3303cdf92ca46
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: cross-compiling with empty cross_prefix

The iOS toolchain does not use the host prefix naming convention. So we
need to enable cross-compile options while allowing the PREFIX to be
blank.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Message-id: 20210126012457.39046-3-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 1ad27f7d93f1a0f76b9cdad1bea01bcebfc130bc
      
https://github.com/qemu/qemu/commit/1ad27f7d93f1a0f76b9cdad1bea01bcebfc130bc
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M include/qemu/osdep.h
    M meson.build

  Log Message:
  -----------
  osdep: build with non-working system() function

Build without error on hosts without a working system(). If system()
is called, return -1 with ENOSYS.

Signed-off-by: Joelle van Dyne <j@getutm.app>
Message-id: 20210126012457.39046-6-j@getutm.app
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 452cfb1684c3bf60f2a39293dd355f2c8d5d0aa9
      
https://github.com/qemu/qemu/commit/452cfb1684c3bf60f2a39293dd355f2c8d5d0aa9
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  darwin: remove redundant dependency declaration

Meson will find CoreFoundation, IOKit, and Cocoa as needed.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Message-id: 20210126012457.39046-7-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 0ca321eaf643ea432c4d2bd5a3f0177798a52542
      
https://github.com/qemu/qemu/commit/0ca321eaf643ea432c4d2bd5a3f0177798a52542
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  darwin: fix cross-compiling for Darwin

Add objc to the Meson cross file as well as detection of Darwin.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210126012457.39046-8-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: f6bca9dff5c9ae3a5afc4678866080ccd5120318
      
https://github.com/qemu/qemu/commit/f6bca9dff5c9ae3a5afc4678866080ccd5120318
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: cross compile should use x86_64 cpu_family

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Message-id: 20210126012457.39046-9-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 422a5fd0872b5c3c7d79a505783a51faad8d398e
      
https://github.com/qemu/qemu/commit/422a5fd0872b5c3c7d79a505783a51faad8d398e
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  darwin: detect CoreAudio for build

On iOS there is no CoreAudio, so we should not assume Darwin always
has it.

Signed-off-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210126012457.39046-11-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 32063086a731aaeb76e1a81623953f8a17fcdb6f
      
https://github.com/qemu/qemu/commit/32063086a731aaeb76e1a81623953f8a17fcdb6f
  Author: Joelle van Dyne <j@getutm.app>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  darwin: remove 64-bit build detection on 32-bit OS

A workaround added in early days of 64-bit OSX forced x86_64 if the
host machine had 64-bit support. This creates issues when cross-
compiling for ARM64. Additionally, the user can always use --cpu=* to
manually set the host CPU and therefore this workaround should be
removed.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Joelle van Dyne <j@getutm.app>
Message-id: 20210126012457.39046-12-j@getutm.app
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 8a74ce618b647e71ac703b5fe5dba3a2329a4d76
      
https://github.com/qemu/qemu/commit/8a74ce618b647e71ac703b5fe5dba3a2329a4d76
  Author: Alexander Graf <agraf@csgraf.de>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    A accel/hvf/entitlements.plist
    M meson.build
    A scripts/entitlement.sh

  Log Message:
  -----------
  hvf: Add hypervisor entitlement to output binaries

In macOS 11, QEMU only gets access to Hypervisor.framework if it has the
respective entitlement. Add an entitlement template and automatically self
sign and apply the entitlement in the build.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 677726ef1ebc567e4f5081f68623debc68f958d9
      
https://github.com/qemu/qemu/commit/677726ef1ebc567e4f5081f68623debc68f958d9
  Author: Mihai Carabas <mihai.carabas@oracle.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/i386/Kconfig
    M hw/misc/Kconfig
    M hw/misc/meson.build
    A hw/misc/pvpanic-isa.c
    M hw/misc/pvpanic.c
    M include/hw/misc/pvpanic.h
    M tests/qtest/meson.build

  Log Message:
  -----------
  hw/misc/pvpanic: split-out generic and bus dependent code

To ease the PCI device addition in next patches, split the code as follows:
- generic code (read/write/setup) is being kept in pvpanic.c
- ISA dependent code moved to pvpanic-isa.c

Also, rename:
- ISA_PVPANIC_DEVICE -> PVPANIC_ISA_DEVICE.
- TYPE_PVPANIC -> TYPE_PVPANIC_ISA.
- MemoryRegion io -> mr.
- pvpanic_ioport_* in pvpanic_*.

Update the build system with the new files and config structure.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: d097b3dcb6214a35613abc60c48517b850349ad0
      
https://github.com/qemu/qemu/commit/d097b3dcb6214a35613abc60c48517b850349ad0
  Author: Mihai Carabas <mihai.carabas@oracle.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M docs/specs/pci-ids.txt
    M hw/misc/Kconfig
    M hw/misc/meson.build
    A hw/misc/pvpanic-pci.c
    M include/hw/misc/pvpanic.h
    M include/hw/pci/pci.h

  Log Message:
  -----------
  hw/misc/pvpanic: add PCI interface support

Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c
where the PCI specific routines reside and update the build system with the new
files and config structure.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: cb2cc20692b8770a63ef139ad0ce14052c25cddd
      
https://github.com/qemu/qemu/commit/cb2cc20692b8770a63ef139ad0ce14052c25cddd
  Author: Mihai Carabas <mihai.carabas@oracle.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M docs/specs/pvpanic.txt

  Log Message:
  -----------
  pvpanic : update pvpanic spec document

Add pvpanic PCI device support details in docs/specs/pvpanic.txt.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: c0f82826a1cc52a2a038b12ccaa1c92bb7e2d4c0
      
https://github.com/qemu/qemu/commit/c0f82826a1cc52a2a038b12ccaa1c92bb7e2d4c0
  Author: Mihai Carabas <mihai.carabas@oracle.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M tests/qtest/meson.build
    A tests/qtest/pvpanic-pci-test.c

  Log Message:
  -----------
  tests/qtest: add a test case for pvpanic-pci

Add a test case for pvpanic-pci device. The scenario is the same as pvpanic
ISA device, but is using the PCI bus.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
[PMM: added code to free dev and pcibus, which the oss-fuzz
 build otherwise complains about as a leak]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: ad140dadd591cdfd47959a7b4538e8133053b3c7
      
https://github.com/qemu/qemu/commit/ad140dadd591cdfd47959a7b4538e8133053b3c7
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/core/ptimer.c
    M include/hw/ptimer.h
    M include/qemu/typedefs.h

  Log Message:
  -----------
  ptimer: Add new ptimer_set_period_from_clock() function

The ptimer API currently provides two methods for setting the period:
ptimer_set_period(), which takes a period in nanoseconds, and
ptimer_set_freq(), which takes a frequency in Hz.  Neither of these
lines up nicely with the Clock API, because although both the Clock
and the ptimer track the frequency using a representation of whole
and fractional nanoseconds, conversion via either period-in-ns or
frequency-in-Hz will introduce a rounding error.

Add a new function ptimer_set_period_from_clock() which takes the
Clock object directly to avoid the rounding issues.  This includes a
facility for the user to specify that there is a frequency divider
between the Clock proper and the timer, as some timer devices like
the CMSDK APB dualtimer need this.

To avoid having to drag in clock.h from ptimer.h we add the Clock
type to typedefs.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-2-peter.maydell@linaro.org
Message-id: 20210121190622.22000-2-peter.maydell@linaro.org


  Commit: 132b10251cd7b6271aa081ddfda329cd3c45bc00
      
https://github.com/qemu/qemu/commit/132b10251cd7b6271aa081ddfda329cd3c45bc00
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M docs/devel/clocks.rst
    M include/hw/clock.h

  Log Message:
  -----------
  clock: Add new clock_has_source() function

Add a function for checking whether a clock has a source.  This is
useful for devices which have input clocks that must be wired up by
the board as it allows them to fail in realize rather than ploughing
on with a zero-period clock.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-3-peter.maydell@linaro.org
Message-id: 20210121190622.22000-3-peter.maydell@linaro.org


  Commit: 30858dafd1edc0be613d0d6d1381d3fb94ef0747
      
https://github.com/qemu/qemu/commit/30858dafd1edc0be613d0d6d1381d3fb94ef0747
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M MAINTAINERS
    A tests/qtest/cmsdk-apb-timer-test.c
    M tests/qtest/meson.build

  Log Message:
  -----------
  tests: Add a simple test of the CMSDK APB timer

Add a simple test of the CMSDK APB timer, since we're about to do
some refactoring of how it is clocked.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-4-peter.maydell@linaro.org
Message-id: 20210121190622.22000-4-peter.maydell@linaro.org


  Commit: 9cf5eb29b24d0a620127e2b0b3a92d3d6ea8991a
      
https://github.com/qemu/qemu/commit/9cf5eb29b24d0a620127e2b0b3a92d3d6ea8991a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M MAINTAINERS
    A tests/qtest/cmsdk-apb-watchdog-test.c
    M tests/qtest/meson.build

  Log Message:
  -----------
  tests: Add a simple test of the CMSDK APB watchdog

Add a simple test of the CMSDK watchdog, since we're about to do some
refactoring of how it is clocked.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-5-peter.maydell@linaro.org
Message-id: 20210121190622.22000-5-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


  Commit: 9bc064b539a3e62e077c816461da50ed9230994a
      
https://github.com/qemu/qemu/commit/9bc064b539a3e62e077c816461da50ed9230994a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M MAINTAINERS
    A tests/qtest/cmsdk-apb-dualtimer-test.c
    M tests/qtest/meson.build

  Log Message:
  -----------
  tests: Add a simple test of the CMSDK APB dual timer

Add a simple test of the CMSDK dual timer, since we're about to do
some refactoring of how it is clocked.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Message-id: 20210128114145.20536-6-peter.maydell@linaro.org
Message-id: 20210121190622.22000-6-peter.maydell@linaro.org


  Commit: b56d351e25065d46fb959081fe13e8d031df35f3
      
https://github.com/qemu/qemu/commit/b56d351e25065d46fb959081fe13e8d031df35f3
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/timer/cmsdk-apb-timer.c
    M include/hw/arm/armsse.h
    M include/hw/timer/cmsdk-apb-timer.h

  Log Message:
  -----------
  hw/timer/cmsdk-apb-timer: Rename CMSDKAPBTIMER struct to CMSDKAPBTimer

The state struct for the CMSDK APB timer device doesn't follow our
usual naming convention of camelcase -- "CMSDK" and "APB" are both
acronyms, but "TIMER" is not so should not be all-uppercase.
Globally rename the struct to "CMSDKAPBTimer" (bringing it into line
with CMSDKAPBWatchdog and CMSDKAPBDualTimer; CMSDKAPBUART remains
as-is because "UART" is an acronym).

Commit created with:
 perl -p -i -e 's/CMSDKAPBTIMER/CMSDKAPBTimer/g' hw/timer/cmsdk-apb-timer.c 
include/hw/arm/armsse.h include/hw/timer/cmsdk-apb-timer.h

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-7-peter.maydell@linaro.org
Message-id: 20210121190622.22000-7-peter.maydell@linaro.org


  Commit: 7cc378edee91c3f5c76cbb90953ba9ed2a57cb11
      
https://github.com/qemu/qemu/commit/7cc378edee91c3f5c76cbb90953ba9ed2a57cb11
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/timer/cmsdk-apb-timer.c
    M include/hw/timer/cmsdk-apb-timer.h

  Log Message:
  -----------
  hw/timer/cmsdk-apb-timer: Add Clock input

As the first step in converting the CMSDK_APB_TIMER device to the
Clock framework, add a Clock input.  For the moment we do nothing
with this clock; we will change the behaviour from using the pclk-frq
property to using the Clock once all the users of this device have
been converted to wire up the Clock.

Since the device doesn't already have a doc comment for its "QEMU
interface", we add one including the new Clock.

This is a migration compatibility break for machines mps2-an505,
mps2-an521, musca-a, musca-b1.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-8-peter.maydell@linaro.org
Message-id: 20210121190622.22000-8-peter.maydell@linaro.org


  Commit: 55fd0f84a245811284578416e12ec572e15c1aff
      
https://github.com/qemu/qemu/commit/55fd0f84a245811284578416e12ec572e15c1aff
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/timer/cmsdk-apb-dualtimer.c
    M include/hw/timer/cmsdk-apb-dualtimer.h

  Log Message:
  -----------
  hw/timer/cmsdk-apb-dualtimer: Add Clock input

As the first step in converting the CMSDK_APB_DUALTIMER device to the
Clock framework, add a Clock input.  For the moment we do nothing
with this clock; we will change the behaviour from using the pclk-frq
property to using the Clock once all the users of this device have
been converted to wire up the Clock.

We take the opportunity to correct the name of the clock input to
match the hardware -- the dual timer names the clock which drives the
timers TIMCLK.  (It does also have a 'pclk' input, which is used only
for the register and APB bus logic; on the SSE-200 these clocks are
both connected together.)

This is a migration compatibility break for machines mps2-an385,
mps2-an386, mps2-an500, mps2-an511, mps2-an505, mps2-an521, musca-a,
musca-b1.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-9-peter.maydell@linaro.org
Message-id: 20210121190622.22000-9-peter.maydell@linaro.org


  Commit: eeae0b2bf4e69de27a133c87951ce52c6bfdb8b7
      
https://github.com/qemu/qemu/commit/eeae0b2bf4e69de27a133c87951ce52c6bfdb8b7
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/watchdog/cmsdk-apb-watchdog.c
    M include/hw/watchdog/cmsdk-apb-watchdog.h

  Log Message:
  -----------
  hw/watchdog/cmsdk-apb-watchdog: Add Clock input

As the first step in converting the CMSDK_APB_TIMER device to the
Clock framework, add a Clock input.  For the moment we do nothing
with this clock; we will change the behaviour from using the
wdogclk-frq property to using the Clock once all the users of this
device have been converted to wire up the Clock.

This is a migration compatibility break for machines mps2-an385,
mps2-an386, mps2-an500, mps2-an511, mps2-an505, mps2-an521, musca-a,
musca-b1, lm3s811evb, lm3s6965evb.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-10-peter.maydell@linaro.org
Message-id: 20210121190622.22000-10-peter.maydell@linaro.org


  Commit: 13059a3a101f9deb415100286e8b62cc2f4561a3
      
https://github.com/qemu/qemu/commit/13059a3a101f9deb415100286e8b62cc2f4561a3
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/armsse.c
    M hw/arm/mps2-tz.c
    M hw/arm/musca.c
    M include/hw/arm/armsse.h

  Log Message:
  -----------
  hw/arm/armsse: Rename "MAINCLK" property to "MAINCLK_FRQ"

While we transition the ARMSSE code from integer properties
specifying clock frequencies to Clock objects, we want to have the
device provide both at once.  We want the final name of the main
input Clock to be "MAINCLK", following the hardware name.
Unfortunately creating an input Clock with a name X creates an
under-the-hood QOM property X; for "MAINCLK" this clashes with the
existing UINT32 property of that name.

Rename the UINT32 property to MAINCLK_FRQ so it can coexist with the
MAINCLK Clock; once the transition is complete MAINCLK_FRQ will be
deleted.

Commit created with:
 perl -p -i -e 's/MAINCLK/MAINCLK_FRQ/g' hw/arm/{armsse,mps2-tz,musca}.c 
include/hw/arm/armsse.h

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-11-peter.maydell@linaro.org
Message-id: 20210121190622.22000-11-peter.maydell@linaro.org


  Commit: 8fd34dc0c484850c7b1126a484add00df0374c98
      
https://github.com/qemu/qemu/commit/8fd34dc0c484850c7b1126a484add00df0374c98
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/armsse.c
    M include/hw/arm/armsse.h

  Log Message:
  -----------
  hw/arm/armsse: Wire up clocks

Create two input clocks on the ARMSSE devices, one for the normal
MAINCLK, and one for the 32KHz S32KCLK, and wire these up to the
appropriate devices.  The old property-based clock frequency setting
will remain in place until conversion is complete.

This is a migration compatibility break for machines mps2-an505,
mps2-an521, musca-a, musca-b1.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-12-peter.maydell@linaro.org
Message-id: 20210121190622.22000-12-peter.maydell@linaro.org


  Commit: efc34aaa823d2552240401d01054e906a871a0e2
      
https://github.com/qemu/qemu/commit/efc34aaa823d2552240401d01054e906a871a0e2
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/mps2.c
    M include/hw/timer/cmsdk-apb-timer.h

  Log Message:
  -----------
  hw/arm/mps2: Inline CMSDK_APB_TIMER creation

The old-style convenience function cmsdk_apb_timer_create() for
creating CMSDK_APB_TIMER objects is used in only two places in
mps2.c.  Most of the rest of the code in that file uses the new
"initialize in place" coding style.

We want to connect up a Clock object which should be done between the
object creation and realization; rather than adding a Clock* argument
to the convenience function, convert the timer creation code in
mps2.c to the same style as is used already for the watchdog,
dualtimer and other devices, and delete the now-unused convenience
function.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-13-peter.maydell@linaro.org
Message-id: 20210121190622.22000-13-peter.maydell@linaro.org


  Commit: 640ec258079ada0c3cd25b6f792f0b265f68a424
      
https://github.com/qemu/qemu/commit/640ec258079ada0c3cd25b6f792f0b265f68a424
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/mps2.c

  Log Message:
  -----------
  hw/arm/mps2: Create and connect SYSCLK Clock

Create a fixed-frequency Clock object to be the SYSCLK, and wire it
up to the devices that require it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-14-peter.maydell@linaro.org
Message-id: 20210121190622.22000-14-peter.maydell@linaro.org


  Commit: dee1515bc370b79e366ec8bb60868711d5699f55
      
https://github.com/qemu/qemu/commit/dee1515bc370b79e366ec8bb60868711d5699f55
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/mps2-tz.c

  Log Message:
  -----------
  hw/arm/mps2-tz: Create and connect ARMSSE Clocks

Create and connect the two clocks needed by the ARMSSE.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-15-peter.maydell@linaro.org
Message-id: 20210121190622.22000-15-peter.maydell@linaro.org


  Commit: fd630cdad72166b9aa91c305e131a1ac3552555c
      
https://github.com/qemu/qemu/commit/fd630cdad72166b9aa91c305e131a1ac3552555c
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/musca.c

  Log Message:
  -----------
  hw/arm/musca: Create and connect ARMSSE Clocks

Create and connect the two clocks needed by the ARMSSE.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-16-peter.maydell@linaro.org
Message-id: 20210121190622.22000-16-peter.maydell@linaro.org


  Commit: 4bebb9ad4e473f6433398bfccf4bc1f7786b1c34
      
https://github.com/qemu/qemu/commit/4bebb9ad4e473f6433398bfccf4bc1f7786b1c34
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/stellaris.c

  Log Message:
  -----------
  hw/arm/stellaris: Convert SSYS to QOM device

Convert the SSYS code in the Stellaris boards (which encapsulates the
system registers) to a proper QOM device.  This will provide us with
somewhere to put the output Clock whose frequency depends on the
setting of the PLL configuration registers.

This is a migration compatibility break for lm3s811evb, lm3s6965evb.

We use 3-phase reset here because the Clock will need to propagate
its value in the hold phase.

For the moment we reset the device during the board creation so that
the system_clock_scale global gets set; this will be removed in a
subsequent commit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-17-peter.maydell@linaro.org
Message-id: 20210121190622.22000-17-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


  Commit: 1e31d8ee45920154d62793564cb9463dbdf8e3b5
      
https://github.com/qemu/qemu/commit/1e31d8ee45920154d62793564cb9463dbdf8e3b5
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/stellaris.c

  Log Message:
  -----------
  hw/arm/stellaris: Create Clock input for watchdog

Create and connect the Clock input for the watchdog device on the
Stellaris boards.  Because the Stellaris boards model the ability to
change the clock rate by programming PLL registers, we have to create
an output Clock on the ssys_state device and wire it up to the
watchdog.

Note that the old comment on ssys_calculate_system_clock() got the
units wrong -- system_clock_scale is in nanoseconds, not
milliseconds.  Improve the commentary to clarify how we are
calculating the period.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-18-peter.maydell@linaro.org
Message-id: 20210121190622.22000-18-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


  Commit: 5e066562f58b949f9b966ee2d8c7668077bbe29d
      
https://github.com/qemu/qemu/commit/5e066562f58b949f9b966ee2d8c7668077bbe29d
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/timer/cmsdk-apb-timer.c

  Log Message:
  -----------
  hw/timer/cmsdk-apb-timer: Convert to use Clock input

Switch the CMSDK APB timer device over to using its Clock input; the
pclk-frq property is now ignored.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-19-peter.maydell@linaro.org
Message-id: 20210121190622.22000-19-peter.maydell@linaro.org


  Commit: 7208aafb6c40ee00ecbe531691bbe58dd1aec04c
      
https://github.com/qemu/qemu/commit/7208aafb6c40ee00ecbe531691bbe58dd1aec04c
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/timer/cmsdk-apb-dualtimer.c

  Log Message:
  -----------
  hw/timer/cmsdk-apb-dualtimer: Convert to use Clock input

Switch the CMSDK APB dualtimer device over to using its Clock input;
the pclk-frq property is now ignored.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-20-peter.maydell@linaro.org
Message-id: 20210121190622.22000-20-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


  Commit: 4c4599fec97bbf9b95f89fea33d4c60304e3888d
      
https://github.com/qemu/qemu/commit/4c4599fec97bbf9b95f89fea33d4c60304e3888d
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/watchdog/cmsdk-apb-watchdog.c

  Log Message:
  -----------
  hw/watchdog/cmsdk-apb-watchdog: Convert to use Clock input

Switch the CMSDK APB watchdog device over to using its Clock input;
the wdogclk_frq property is now ignored.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-21-peter.maydell@linaro.org
Message-id: 20210121190622.22000-21-peter.maydell@linaro.org


  Commit: 7bbb12f305c894b861229073e5d43ea80bcce6e0
      
https://github.com/qemu/qemu/commit/7bbb12f305c894b861229073e5d43ea80bcce6e0
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M tests/qtest/cmsdk-apb-watchdog-test.c

  Log Message:
  -----------
  tests/qtest/cmsdk-apb-watchdog-test: Test clock changes

Now that the CMSDK APB watchdog uses its Clock input, it will
correctly respond when the system clock frequency is changed using
the RCC register on in the Stellaris board system registers.  Test
that when the RCC register is written it causes the watchdog timer to
change speed.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-22-peter.maydell@linaro.org
Message-id: 20210121190622.22000-22-peter.maydell@linaro.org


  Commit: 8ee3e26eceb942b4626d18fae1cdf3ac8a7e1b69
      
https://github.com/qemu/qemu/commit/8ee3e26eceb942b4626d18fae1cdf3ac8a7e1b69
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/armsse.c

  Log Message:
  -----------
  hw/arm/armsse: Use Clock to set system_clock_scale

Use the MAINCLK Clock input to set the system_clock_scale variable
rather than using the mainclk_frq property.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Message-id: 20210128114145.20536-23-peter.maydell@linaro.org
Message-id: 20210121190622.22000-23-peter.maydell@linaro.org


  Commit: 911612989d8224e1e37e47438dac29330f0798ff
      
https://github.com/qemu/qemu/commit/911612989d8224e1e37e47438dac29330f0798ff
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/armsse.c
    M hw/arm/mps2-tz.c
    M hw/arm/mps2.c
    M hw/arm/musca.c
    M hw/arm/stellaris.c

  Log Message:
  -----------
  arm: Don't set freq properties on CMSDK timer, dualtimer, watchdog, ARMSSE

Remove all the code that sets frequency properties on the CMSDK
timer, dualtimer and watchdog devices and on the ARMSSE SoC device:
these properties are unused now that the devices rely on their Clock
inputs instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-24-peter.maydell@linaro.org
Message-id: 20210121190622.22000-24-peter.maydell@linaro.org


  Commit: 38867d0b7e7266d845d1b7d471edae4b73e9eb1a
      
https://github.com/qemu/qemu/commit/38867d0b7e7266d845d1b7d471edae4b73e9eb1a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/armsse.c
    M hw/timer/cmsdk-apb-dualtimer.c
    M hw/timer/cmsdk-apb-timer.c
    M hw/watchdog/cmsdk-apb-watchdog.c
    M include/hw/arm/armsse.h
    M include/hw/timer/cmsdk-apb-dualtimer.h
    M include/hw/timer/cmsdk-apb-timer.h
    M include/hw/watchdog/cmsdk-apb-watchdog.h

  Log Message:
  -----------
  arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE

Now no users are setting the frq properties on the CMSDK timer,
dualtimer, watchdog or ARMSSE SoC devices, we can remove the
properties and the struct fields that back them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-25-peter.maydell@linaro.org
Message-id: 20210121190622.22000-25-peter.maydell@linaro.org


  Commit: 14711b6f54708b9583796db02b12ee7bd0331502
      
https://github.com/qemu/qemu/commit/14711b6f54708b9583796db02b12ee7bd0331502
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M hw/arm/stellaris.c

  Log Message:
  -----------
  hw/arm/stellaris: Remove board-creation reset of STELLARIS_SYS

Now that the watchdog device uses its Clock input rather than being
passed the value of system_clock_scale at creation time, we can
remove the hack where we reset the STELLARIS_SYS at board creation
time to force it to set system_clock_scale.  Instead it will be reset
at the usual point in startup and will inform the watchdog of the
clock frequency at that point.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-26-peter.maydell@linaro.org
Message-id: 20210121190622.22000-26-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


  Commit: 9df52f58e76e904fb141b10318362d718f470db2
      
https://github.com/qemu/qemu/commit/9df52f58e76e904fb141b10318362d718f470db2
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M MAINTAINERS
    A accel/hvf/entitlements.plist
    M configure
    M docs/devel/clocks.rst
    M docs/specs/pci-ids.txt
    M docs/specs/pvpanic.txt
    M docs/system/arm/virt.rst
    M hw/arm/Kconfig
    M hw/arm/armsse.c
    M hw/arm/mps2-tz.c
    M hw/arm/mps2.c
    M hw/arm/musca.c
    M hw/arm/stellaris.c
    M hw/arm/virt.c
    M hw/arm/xlnx-zcu102.c
    M hw/core/ptimer.c
    M hw/gpio/Kconfig
    A hw/gpio/gpio_pwr.c
    M hw/gpio/meson.build
    M hw/i386/Kconfig
    M hw/misc/Kconfig
    M hw/misc/meson.build
    M hw/misc/npcm7xx_pwm.c
    A hw/misc/pvpanic-isa.c
    A hw/misc/pvpanic-pci.c
    M hw/misc/pvpanic.c
    M hw/timer/cmsdk-apb-dualtimer.c
    M hw/timer/cmsdk-apb-timer.c
    M hw/watchdog/cmsdk-apb-watchdog.c
    M include/hw/arm/armsse.h
    M include/hw/arm/virt.h
    M include/hw/clock.h
    M include/hw/misc/pvpanic.h
    M include/hw/pci/pci.h
    M include/hw/ptimer.h
    M include/hw/timer/cmsdk-apb-dualtimer.h
    M include/hw/timer/cmsdk-apb-timer.h
    M include/hw/watchdog/cmsdk-apb-watchdog.h
    M include/qemu/osdep.h
    M include/qemu/typedefs.h
    M meson.build
    A scripts/entitlement.sh
    M target/arm/cpu.h
    M target/arm/helper.c
    M target/arm/kvm64.c
    A tests/qtest/cmsdk-apb-dualtimer-test.c
    A tests/qtest/cmsdk-apb-timer-test.c
    A tests/qtest/cmsdk-apb-watchdog-test.c
    M tests/qtest/meson.build
    M tests/qtest/npcm7xx_pwm-test.c
    A tests/qtest/pvpanic-pci-test.c
    M tests/qtest/xlnx-can-test.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/pmaydell/tags/pull-target-arm-20210129-1' into staging

target-arm queue:
 * Implement ID_PFR2
 * Conditionalize DBGDIDR
 * rename xlnx-zcu102.canbusN properties
 * provide powerdown/reset mechanism for secure firmware on 'virt' board
 * hw/misc: Fix arith overflow in NPCM7XX PWM module
 * target/arm: Replace magic value by MMU_DATA_LOAD definition
 * configure: fix preadv errors on Catalina macOS with new XCode
 * Various configure and other cleanups in preparation for iOS support
 * hvf: Add hypervisor entitlement to output binaries (needed for Big Sur)
 * Implement pvpanic-pci device
 * Convert the CMSDK timer devices to the Clock framework

# gpg: Signature made Fri 29 Jan 2021 16:08:02 GMT
# gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg:                issuer "peter.maydell@linaro.org"
# gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" 
[ultimate]
# Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE

* remotes/pmaydell/tags/pull-target-arm-20210129-1: (46 commits)
  hw/arm/stellaris: Remove board-creation reset of STELLARIS_SYS
  arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE
  arm: Don't set freq properties on CMSDK timer, dualtimer, watchdog, ARMSSE
  hw/arm/armsse: Use Clock to set system_clock_scale
  tests/qtest/cmsdk-apb-watchdog-test: Test clock changes
  hw/watchdog/cmsdk-apb-watchdog: Convert to use Clock input
  hw/timer/cmsdk-apb-dualtimer: Convert to use Clock input
  hw/timer/cmsdk-apb-timer: Convert to use Clock input
  hw/arm/stellaris: Create Clock input for watchdog
  hw/arm/stellaris: Convert SSYS to QOM device
  hw/arm/musca: Create and connect ARMSSE Clocks
  hw/arm/mps2-tz: Create and connect ARMSSE Clocks
  hw/arm/mps2: Create and connect SYSCLK Clock
  hw/arm/mps2: Inline CMSDK_APB_TIMER creation
  hw/arm/armsse: Wire up clocks
  hw/arm/armsse: Rename "MAINCLK" property to "MAINCLK_FRQ"
  hw/watchdog/cmsdk-apb-watchdog: Add Clock input
  hw/timer/cmsdk-apb-dualtimer: Add Clock input
  hw/timer/cmsdk-apb-timer: Add Clock input
  hw/timer/cmsdk-apb-timer: Rename CMSDKAPBTIMER struct to CMSDKAPBTimer
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/3701c07e63bb...9df52f58e76e



reply via email to

[Prev in Thread] Current Thread [Next in Thread]