[PATCH] hw/sensor: Add lsm303dlhc magnetometer device

2021-08-14 Thread Kevin Townsend
This commit adds emulation of the magnetometer on the LSM303DLHC. It allows the magnetometer's X, Y and Z outputs to be set via the magn_x, magn_y and magn_z properties, as well as the 12-bit temperature output via the temperature property. Signed-off-by: Kevin Townsend --- hw/sensor/Kconfig

Re: [PATCH 12/19] target/ppc/pmu_book3s_helper.c: enable PMC1 counter negative EBB

2021-08-14 Thread Daniel Henrique Barboza
On 8/12/21 9:35 PM, Richard Henderson wrote: On 8/12/21 11:24 AM, Daniel Henrique Barboza wrote: +void helper_insns_inc(CPUPPCState *env) +{ +    env->pmu_insns_count++; +} + +void helper_insns_dec(CPUPPCState *env) +{ +    env->pmu_insns_count--; +} diff --git a/target/ppc/translate.c b/targ

Re: [PATCH for-6.2 3/4] tests/qtest/ipmi-bt-test: Zero-initialize sockaddr struct

2021-08-14 Thread Corey Minyard
On Fri, Aug 13, 2021 at 04:05:05PM +0100, Peter Maydell wrote: > Zero-initialize the sockaddr_in struct that we're about to fill in > and pass to bind(), to ensure we don't leave possible > implementation-defined extension fields as uninitialized garbage. > > Signed-off-by: Peter Maydell Looks g

Re: [PATCH 3/7] MAINTAINERS: update audio entry.

2021-08-14 Thread Christian Schoenebeck
On Donnerstag, 12. August 2021 15:13:24 CEST Philippe Mathieu-Daudé wrote: > Hi all, > > On 8/12/21 2:24 PM, Christian Schoenebeck wrote: > > On Donnerstag, 12. August 2021 10:42:10 CEST Gerd Hoffmann wrote: > >> Hi, > >> > On Tue, Aug 10, 2021 at 03:17:43PM +0300, cla...@hotmail.com wro

Re: [PATCH for-6.2 19/25] hw/arm/msf2: Use Clock input to MSF2_SOC instead of m3clk property

2021-08-14 Thread Alexandre IOOSS
On 8/14/21 12:11 PM, Peter Maydell wrote: On Sat, 14 Aug 2021 at 10:20, Alexandre IOOSS wrote: On 8/12/21 11:33 AM, Peter Maydell wrote: Instead of passing the MSF2 SoC an integer property specifying the CPU clock rate, pass it a Clock instead. This lets us wire that clock up to the armv7m

Re: [PATCH for-6.2 19/25] hw/arm/msf2: Use Clock input to MSF2_SOC instead of m3clk property

2021-08-14 Thread Peter Maydell
On Sat, 14 Aug 2021 at 10:20, Alexandre IOOSS wrote: > > > On 8/12/21 11:33 AM, Peter Maydell wrote: > > Instead of passing the MSF2 SoC an integer property specifying the > > CPU clock rate, pass it a Clock instead. This lets us wire that > > clock up to the armv7m object. > > > > Signed-off-by:

Re: [PATCH for-6.2 22/25] hw/arm/stellaris: Fix code style issues in GPTM code

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Fix the code style issues in the Stellaris general purpose timer module code, so that when we move it to a different file in a following patch checkpatch doesn't complain. Signed-off-by: Peter Maydell Reviewed-by: Alexandre Iooss Thanks, -- Alexand

Re: [PATCH for-6.2 19/25] hw/arm/msf2: Use Clock input to MSF2_SOC instead of m3clk property

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Instead of passing the MSF2 SoC an integer property specifying the CPU clock rate, pass it a Clock instead. This lets us wire that clock up to the armv7m object. Signed-off-by: Peter Maydell --- include/hw/arm/msf2-soc.h | 3 ++- hw/arm/msf2-soc.c

Re: [PATCH for-6.2 18/25] hw/arm/msf2_soc: Don't allocate separate MemoryRegions

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: In the realize method of the msf2-soc SoC object, we call g_new() to create new MemoryRegion objects for the nvm, nvm_alias, and sram. This is unnecessary; make these MemoryRegions member fields of the device state struct instead. Signed-off-by: Peter M

Re: [PATCH for-6.2 17/25] hw/arm/stellaris: Wire sysclk up to armv7m

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Connect the sysclk to the armv7m object. This board's SoC does not connect up the systick reference clock, so we don't need to connect a refclk. Signed-off-by: Peter Maydell Reviewed-by: Alexandre Iooss -- Alexandre OpenPGP_signature Descriptio

Re: [PATCH for-6.2 16/25] hw/arm/stellaris: split stellaris_sys_init()

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Currently the stellaris_sys_init() function creates the TYPE_STELLARIS_SYS object, sets its properties, realizes it, maps its MMIO region and connects its IRQ. In order to support wiring the sysclk up to the armv7m object, we need to split this function

Re: [PATCH for-6.2 15/25] hw/arm/nrf51: Wire up sysclk

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Wire up the sysclk input to the armv7m object. Strictly this SoC should not have a systick device at all, but our armv7m container object doesn't currently support disabling the systick device. For the moment, add a TODO comment, but note that this is

Re: [PATCH for-6.2 13/25] hw/arm/stm32f405: Wire up sysclk and refclk

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Wire up the sysclk and refclk for the stm32f405 SoC. This SoC always runs the systick refclk at 1/8 the frequency of the main CPU clock, so the board code only needs to provide a single sysclk clock. Because there is only one board using this SoC, we c

Re: [PATCH for-6.2 12/25] hw/arm/stm32f205: Wire up sysclk and refclk

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Wire up the sysclk and refclk for the stm32f205 SoC. This SoC always runs the systick refclk at 1/8 the frequency of the main CPU clock, so the board code only needs to provide a single sysclk clock. Because there is only one board using this SoC, we c

Re: [PATCH for-6.2 11/25] hw/arm/stm32f100: Wire up sysclk and refclk

2021-08-14 Thread Alexandre IOOSS
On 8/12/21 11:33 AM, Peter Maydell wrote: Wire up the sysclk and refclk for the stm32f100 SoC. This SoC always runs the systick refclk at 1/8 the frequency of the main CPU clock, so the board code only needs to provide a single sysclk clock. Because there is only one board using this SoC, we c