hw/block/pflash_cfi02: Set rom_mode to true in pflash_setup_mappings()
commit326d02c34a92f6e30fa3231be83efda43bac36f8
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 9 Mar 2021 23:16:56 +0000 (10 00:16 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 18 Mar 2021 10:16:31 +0000 (18 11:16 +0100)
treec530f326be98311aa9f96a89c19eeb514fb999f8
parent4586c2e5d5cd625b36052d5bd9ef0dee69a5c5c6
hw/block/pflash_cfi02: Set rom_mode to true in pflash_setup_mappings()

There is only one call to pflash_setup_mappings(). Convert 'rom_mode'
to boolean and set it to true directly within pflash_setup_mappings().

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20210310170528.1184868-5-philmd@redhat.com>
hw/block/pflash_cfi02.c