The only address space where the GIC devices are added is
address_space_memory. There is no need to use a global
MemoryListener.
This removes the only user of global MemoryListeners.
Signed-off-by: Paolo Bonzini <[email protected]>
[PMM: added missing #include "exec/address-spaces.h"]
Reviewed-by: Peter Maydell <[email protected]>
Message-id:
1475219846[email protected]
Signed-off-by: Peter Maydell <[email protected]>
#include "internals.h"
#include "hw/arm/arm.h"
#include "exec/memattrs.h"
+#include "exec/address-spaces.h"
#include "hw/boards.h"
#include "qemu/log.h"
}
if (QSLIST_EMPTY(&kvm_devices_head)) {
- memory_listener_register(&devlistener, NULL);
+ memory_listener_register(&devlistener, &address_space_memory);
qemu_add_machine_init_done_notifier(¬ify);
}
kd = g_new0(KVMDevice, 1);