From b8c338858a101d14308c64c87b0f714db4f05326 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 2 Nov 2020 12:11:43 +0100 Subject: emumem: Simplify memory management. [O. Galibert] API impact: - install_ram/rom/writeonly now requires a non-null pointer. If you want automatically managed ram, add it to a memory map, not in machine_start - install_*_bank now requires a memory_bank *, not a string - one can create memory banks outside of memory maps with memory_bank_creator - one can create memory shares outside of memory maps with memory_share_creator Memory maps impact: - ram ranges with overlapping addresses are not shared anymore. Use .share() - ram ranges touching each other are not merged anymore. Stay in your range Extra note: - there is no need to create a bank just to dynamically map some memory/rom. Just use install_rom/ram/writeonly --- src/devices/bus/c64/reu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/bus/c64/reu.h') diff --git a/src/devices/bus/c64/reu.h b/src/devices/bus/c64/reu.h index 0cbb67d9576..eaa662f38a1 100644 --- a/src/devices/bus/c64/reu.h +++ b/src/devices/bus/c64/reu.h @@ -52,7 +52,7 @@ protected: required_device m_dmac; required_device m_eprom; - optional_shared_ptr m_ram; + memory_share_creator m_ram; int m_variant; int m_jp1; -- cgit v1.2.3-70-g09d2