Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-10-14 Thread Alistair Francis
On Wed, Oct 14, 2020 at 5:39 AM Peter Maydell wrote: > > On Wed, 14 Oct 2020 at 01:42, Alistair Francis wrote: > > > > On Tue, Oct 13, 2020 at 5:29 PM Alistair Francis > > wrote: > > > > > > On Mon, Oct 12, 2020 at 8:45 AM Peter Maydell > > > wrote: > > > > > > > > The netduino2 and netduinop

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-10-14 Thread Peter Maydell
On Wed, 14 Oct 2020 at 01:42, Alistair Francis wrote: > > On Tue, Oct 13, 2020 at 5:29 PM Alistair Francis wrote: > > > > On Mon, Oct 12, 2020 at 8:45 AM Peter Maydell > > wrote: > > > > > > The netduino2 and netduinoplus2 boards forgot to set the > > > system_clock_scale > > > global, which m

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-10-13 Thread Alistair Francis
On Tue, Oct 13, 2020 at 5:29 PM Alistair Francis wrote: > > On Mon, Oct 12, 2020 at 8:45 AM Peter Maydell > wrote: > > > > The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale > > global, which meant that if guest code used the systick timer in "use > > the processor clock

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-10-13 Thread Alistair Francis
On Mon, Oct 12, 2020 at 8:45 AM Peter Maydell wrote: > > The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale > global, which meant that if guest code used the systick timer in "use > the processor clock" mode it would hang because time never advances. > > Set the global to

[PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-10-12 Thread Peter Maydell
The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale global, which meant that if guest code used the systick timer in "use the processor clock" mode it would hang because time never advances. Set the global to match the documented CPU clock speed of these boards. Judging by

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-07-27 Thread Alistair Francis
On Mon, Jul 27, 2020 at 9:26 AM Peter Maydell wrote: > > The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale > global, which meant that if guest code used the systick timer in "use > the processor clock" mode it would hang because time never advances. > > Set the global to

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-07-27 Thread Peter Maydell
On Mon, 27 Jul 2020 at 19:07, Philippe Mathieu-Daudé wrote: > $ qemu-system-arm -M microbit > qemu-system-arm: can not use systick with 'system_clock_scale = 0' Yes, that's the other one on my list to do next (need to find out what frequency it runs at though). Good idea to have an automatic che

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-07-27 Thread Philippe Mathieu-Daudé
On 7/27/20 8:05 PM, Philippe Mathieu-Daudé wrote: > On 7/27/20 6:26 PM, Peter Maydell wrote: >> The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale >> global, which meant that if guest code used the systick timer in "use >> the processor clock" mode it would hang because tim

Re: [PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-07-27 Thread Philippe Mathieu-Daudé
On 7/27/20 6:26 PM, Peter Maydell wrote: > The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale > global, which meant that if guest code used the systick timer in "use > the processor clock" mode it would hang because time never advances. > > Set the global to match the docu

[PATCH for-5.1] hw/arm/netduino2, netduinoplus2: Set system_clock_scale

2020-07-27 Thread Peter Maydell
The netduino2 and netduinoplus2 boards forgot to set the system_clock_scale global, which meant that if guest code used the systick timer in "use the processor clock" mode it would hang because time never advances. Set the global to match the documented CPU clock speed of these boards. Judging by