diff options
author | 2016-12-09 17:22:01 +0100 | |
---|---|---|
committer | 2016-12-09 17:23:03 +0100 | |
commit | 962fda50bcb0ecb874ddd8bb274926d59cdd1250 (patch) | |
tree | 763c46fe4b086c9a59e8262f81ba265e8ed97924 /src/devices/machine/pci.h | |
parent | c1a77cedcbf9a901c4f6d83a0b798876dd9ccdac (diff) |
delegates: Don't crash on late binding if no object is actually needed [O. Galibert]
pci9050: Fix the mappings [O. Galibert]
Diffstat (limited to 'src/devices/machine/pci.h')
-rw-r--r-- | src/devices/machine/pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/pci.h b/src/devices/machine/pci.h index 6b94f4abd82..a67e17a96e0 100644 --- a/src/devices/machine/pci.h +++ b/src/devices/machine/pci.h @@ -94,8 +94,8 @@ protected: }; struct bank_info { - // One of the two address_map_delegate map; + device_t *device; uint64_t adr; uint32_t size; @@ -123,7 +123,7 @@ protected: virtual void device_reset() override; void skip_map_regs(int count); - void add_map(uint64_t size, int flags, address_map_delegate &map); + void add_map(uint64_t size, int flags, address_map_delegate &map, device_t *relative_to = nullptr); template <typename T> void add_map(uint64_t size, int flags, void (T::*map)(address_map &map), const char *name) { address_map_delegate delegate(map, name, static_cast<T *>(this)); add_map(size, flags, delegate); |