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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo