Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 2/21/19 10:38 AM, Peter Maydell wrote: >> On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: >>> Double-checking... you want me to keep goto reset_flash, like this: >>> >>> @@ -623,8 +617,8 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr >>> offset,

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Alex Bennée
Markus Armbruster writes: > Philippe Mathieu-Daudé writes: > >> On 2/21/19 10:38 AM, Peter Maydell wrote: >>> On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: Double-checking... you want me to keep goto reset_flash, like this: @@ -623,8 +617,8 @@ static void

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 2/21/19 10:38 AM, Peter Maydell wrote: >> On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: >>> Double-checking... you want me to keep goto reset_flash, like this: >>> >>> @@ -623,8 +617,8 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr >>> offset,

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Laszlo Ersek
On 02/21/19 17:39, Philippe Mathieu-Daudé wrote: > On 2/21/19 1:46 PM, Laszlo Ersek wrote: >> On 02/21/19 13:38, Peter Maydell wrote: >>> On Thu, 21 Feb 2019 at 12:07, Laszlo Ersek wrote: since we're talking "reset_flash", I'll note that there is no actual reset handler for

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Philippe Mathieu-Daudé
On 2/21/19 1:46 PM, Laszlo Ersek wrote: > On 02/21/19 13:38, Peter Maydell wrote: >> On Thu, 21 Feb 2019 at 12:07, Laszlo Ersek wrote: >>> since we're talking "reset_flash", I'll note that there is no actual >>> reset handler for cfi.pflash01. I found out recently, via: >>> >>>

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Philippe Mathieu-Daudé
On 2/21/19 10:38 AM, Peter Maydell wrote: > On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: >> Double-checking... you want me to keep goto reset_flash, like this: >> >> @@ -623,8 +617,8 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr offset, >> pfl->wcycle = 0; >>

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Alex Bennée
Markus Armbruster writes: > Markus Armbruster writes: > >> Peter Maydell writes: >> >>> On Tue, 19 Feb 2019 at 12:41, Philippe Mathieu-Daudé >>> wrote: On 2/18/19 1:56 PM, Markus Armbruster wrote: > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible >

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Laszlo Ersek
On 02/21/19 13:38, Peter Maydell wrote: > On Thu, 21 Feb 2019 at 12:07, Laszlo Ersek wrote: >> since we're talking "reset_flash", I'll note that there is no actual >> reset handler for cfi.pflash01. I found out recently, via: >> >> https://bugzilla.redhat.com/show_bug.cgi?id=1678713 > > Yes;

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Peter Maydell
On Thu, 21 Feb 2019 at 12:07, Laszlo Ersek wrote: > since we're talking "reset_flash", I'll note that there is no actual > reset handler for cfi.pflash01. I found out recently, via: > > https://bugzilla.redhat.com/show_bug.cgi?id=1678713 Yes; this isn't uncommon for some of the really old device

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Laszlo Ersek
somewhat off-topic: On 02/21/19 10:38, Peter Maydell wrote: > On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: >> Double-checking... you want me to keep goto reset_flash, like this: >> >> @@ -623,8 +617,8 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr offset, >>

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Peter Maydell
On Thu, 21 Feb 2019 at 09:22, Markus Armbruster wrote: > Double-checking... you want me to keep goto reset_flash, like this: > > @@ -623,8 +617,8 @@ static void pflash_write(PFlashCFI01 *pfl, hwaddr offset, > pfl->wcycle = 0; > pfl->status |= 0x80; >

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-21 Thread Markus Armbruster
Markus Armbruster writes: > Peter Maydell writes: > >> On Tue, 19 Feb 2019 at 12:41, Philippe Mathieu-Daudé >> wrote: >>> >>> On 2/18/19 1:56 PM, Markus Armbruster wrote: >>> > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible >>> > BUG", which sounds like a warning, then

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-19 Thread Markus Armbruster
Peter Maydell writes: > On Tue, 19 Feb 2019 at 12:41, Philippe Mathieu-Daudé > wrote: >> >> On 2/18/19 1:56 PM, Markus Armbruster wrote: >> > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible >> > BUG", which sounds like a warning, then calls exit(1), followed by >> >

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-19 Thread Peter Maydell
On Tue, 19 Feb 2019 at 12:41, Philippe Mathieu-Daudé wrote: > > On 2/18/19 1:56 PM, Markus Armbruster wrote: > > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible > > BUG", which sounds like a warning, then calls exit(1), followed by > > unreachable goto reset_flash. All this

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-19 Thread Philippe Mathieu-Daudé
On 2/18/19 1:56 PM, Markus Armbruster wrote: > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible > BUG", which sounds like a warning, then calls exit(1), followed by > unreachable goto reset_flash. All this commit does is expanding the > macro, so the smell becomes more

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-18 Thread Markus Armbruster
Laszlo Ersek writes: > On 02/18/19 13:56, Markus Armbruster wrote: >> PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible >> BUG", which sounds like a warning, then calls exit(1), followed by >> unreachable goto reset_flash. All this commit does is expanding the >> macro, so the

Re: [Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-18 Thread Laszlo Ersek
On 02/18/19 13:56, Markus Armbruster wrote: > PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible > BUG", which sounds like a warning, then calls exit(1), followed by > unreachable goto reset_flash. All this commit does is expanding the > macro, so the smell becomes more poignant,

[Qemu-devel] [PATCH 02/10] pflash: Macro PFLASH_BUG() is used just once, expand

2019-02-18 Thread Markus Armbruster
PFLASH_BUG()'s lone use has a suspicious smell: it prints "Possible BUG", which sounds like a warning, then calls exit(1), followed by unreachable goto reset_flash. All this commit does is expanding the macro, so the smell becomes more poignant, and the macro can be deleted. Signed-off-by: