Re: [PULL 09/31] hw/core/clock: introduce clock object

2020-10-20 Thread Philippe Mathieu-Daudé
On 10/20/20 6:46 PM, Peter Maydell wrote: On Tue, 20 Oct 2020 at 17:06, Philippe Mathieu-Daudé wrote: On 10/17/20 1:47 PM, Philippe Mathieu-Daudé wrote: Hi Damien, Peter, +/* + * macro helpers to convert to hertz / nanosecond + */ +#define CLOCK_PERIOD_FROM_NS(ns) ((ns) * (CLOCK_SECOND / 10

Re: [PULL 09/31] hw/core/clock: introduce clock object

2020-10-20 Thread Peter Maydell
On Tue, 20 Oct 2020 at 17:06, Philippe Mathieu-Daudé wrote: > > On 10/17/20 1:47 PM, Philippe Mathieu-Daudé wrote: > > Hi Damien, Peter, > > > >> +/* > >> + * macro helpers to convert to hertz / nanosecond > >> + */ > >> +#define CLOCK_PERIOD_FROM_NS(ns) ((ns) * (CLOCK_SECOND / 10llu)) > >

Re: [PULL 09/31] hw/core/clock: introduce clock object

2020-10-20 Thread Philippe Mathieu-Daudé
On 10/17/20 1:47 PM, Philippe Mathieu-Daudé wrote: Hi Damien, Peter, On 4/30/20 1:51 PM, Peter Maydell wrote: This object may be used to represent a clock inside a clock tree. A clock may be connected to another clock so that it receives update, through a callback, whenever the source/parent c

Re: [PULL 09/31] hw/core/clock: introduce clock object

2020-10-17 Thread Philippe Mathieu-Daudé
Hi Damien, Peter, On 4/30/20 1:51 PM, Peter Maydell wrote: This object may be used to represent a clock inside a clock tree. A clock may be connected to another clock so that it receives update, through a callback, whenever the source/parent clock is updated. Although only the root clock of a

Re: [PULL 09/31] hw/core/clock: introduce clock object

2020-04-30 Thread Peter Maydell
On Thu, 30 Apr 2020 at 12:51, Peter Maydell wrote: > > This object may be used to represent a clock inside a clock tree. > > A clock may be connected to another clock so that it receives update, > through a callback, whenever the source/parent clock is updated. > > Although only the root clock of

[PULL 09/31] hw/core/clock: introduce clock object

2020-04-30 Thread Peter Maydell
This object may be used to represent a clock inside a clock tree. A clock may be connected to another clock so that it receives update, through a callback, whenever the source/parent clock is updated. Although only the root clock of a clock tree controls the values (represented as periods) of all