hw/net/pcnet-pci: Convert away from old_mmio accessors
commit5d026de8b6aeb4d494c21ac32112c2821bd05422
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Sep 2018 13:02:32 +0000 (25 14:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Sep 2018 14:13:24 +0000 (25 15:13 +0100)
tree4a3ea14bf8566827d62c5d3343dbb997c0d2687a
parentb6e6c65151efb72063a9dd62fbd5baa744d4ab30
hw/net/pcnet-pci: Convert away from old_mmio accessors

Convert the pcnet-pci device away from using the old_mmio
MemoryRegionOps accessor functions.

This commit is a no-behaviour-change API conversion.
(Since PCNET_PNPMMIO_SIZE is 0x20, the old "addr & 0x10"
check and the new "addr < 0x10" check are exact opposites;
the new code is phrased to be parallel with the
pcnet_io_read/write functions.)

I have left a TODO comment marker because the similarity
between the MMIO and IO accessor behaviour is suspicious
and they could be combined, but this will be left to a
different patch.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/pcnet-pci.c
hw/net/trace-events