[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v3 09/33] add doc about Resettable interface
From: |
Peter Maydell |
Subject: |
Re: [Qemu-ppc] [PATCH v3 09/33] add doc about Resettable interface |
Date: |
Wed, 7 Aug 2019 11:34:41 +0100 |
On Wed, 31 Jul 2019 at 07:33, David Gibson <address@hidden> wrote:
>
> On Mon, Jul 29, 2019 at 04:56:30PM +0200, Damien Hedde wrote:
> > +The function *resettable_reset* is used to trigger a reset on a given
> > +object.
> > +void resettable_reset(Object *obj, bool cold)
> > +
> > +The parameter *obj* must implement the Resettable interface.
>
> And what happens if it doesn't? This function has no way to report an
> error.
Trying to reset an object that isn't actually resettable would
be a programming error -- I think asserting is a reasonable
response to that.
thanks
-- PMM
- Re: [Qemu-ppc] [PATCH v3 09/33] add doc about Resettable interface,
Peter Maydell <=