hw/block/pflash_cfi02: Factor out pflash_reset_state_machine()
commit7d1df53f14a26fa95ebee9767d3a4fac281fd70f
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 9 Mar 2021 23:27:18 +0000 (10 00:27 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 18 Mar 2021 10:16:31 +0000 (18 11:16 +0100)
treec76044b3216e69c306143b56b9a0d0000d39b0ae
parent7cb1096021fa749f9dc50a3ff074c2101680741c
hw/block/pflash_cfi02: Factor out pflash_reset_state_machine()

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é <philmd@redhat.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20210310170528.1184868-8-philmd@redhat.com>
hw/block/pflash_cfi02.c