On Thu, Mar 11, 2021 at 1:36 AM Philippe Mathieu-Daudé <phi...@redhat.com> wrote: > > There is multiple places resetting the internal state machine. > Factor the code out in a new pflash_reset_state_machine() method. > > Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > hw/block/pflash_cfi02.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com>