Re: [PATCH 17/17] Replace uses of FROM_SSI_SLAVE() macro with QOM casts

2020-07-02 Thread Alistair Francis
On Sun, Jun 28, 2020 at 7:37 AM Peter Maydell wrote: > > The FROM_SSI_SLAVE() macro predates QOM and is used as a typesafe way > to cast from an SSISlave* to the instance struct of a subtype of > TYPE_SSI_SLAVE. Switch to using the QOM cast macros instead, which > have the same effect (by writing

Re: [PATCH 17/17] Replace uses of FROM_SSI_SLAVE() macro with QOM casts

2020-06-29 Thread Philippe Mathieu-Daudé
On 6/28/20 4:24 PM, Peter Maydell wrote: > The FROM_SSI_SLAVE() macro predates QOM and is used as a typesafe way > to cast from an SSISlave* to the instance struct of a subtype of > TYPE_SSI_SLAVE. Switch to using the QOM cast macros instead, which > have the same effect (by writing the QOM macros

[PATCH 17/17] Replace uses of FROM_SSI_SLAVE() macro with QOM casts

2020-06-28 Thread Peter Maydell
The FROM_SSI_SLAVE() macro predates QOM and is used as a typesafe way to cast from an SSISlave* to the instance struct of a subtype of TYPE_SSI_SLAVE. Switch to using the QOM cast macros instead, which have the same effect (by writing the QOM macros if the types were previously missing them.) (Th