hw/block/pflash_cfi02: Unify the MemoryRegionOps
commitaff498cf30363788c8a248ec961829488d37f65e
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 1 May 2019 16:15:56 +0000 (1 18:15 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:31:13 +0000 (2 02:31 +0200)
tree7b968b2f58a442bdcf9cde5ab9b2e4ab08babd8d
parent06e8b8e3e1bb5f2d189197b050b23d9da3955a41
hw/block/pflash_cfi02: Unify the MemoryRegionOps

The pflash_read()/pflash_write() can check the device endianess
via the pfl->be variable, so remove the 'int be' argument.

Since the big/little MemoryRegionOps are now identical, it is
pointless to declare them both. Unify them.

Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-3-stephen.checkoway@oberlin.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Extracted from bigger patch to ease review]
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c