summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2016-12-09 17:22:01 +0100
committer Olivier Galibert <galibert@pobox.com>2016-12-09 17:23:03 +0100
commit962fda50bcb0ecb874ddd8bb274926d59cdd1250 (patch)
tree763c46fe4b086c9a59e8262f81ba265e8ed97924 /src/devices/machine/pci.h
parentc1a77cedcbf9a901c4f6d83a0b798876dd9ccdac (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.h4
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);