From 7c18a71442f9f7c3b6563335a9d956805d1eb26a Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 29 Jun 2018 18:29:37 -0400 Subject: [PATCH] A better way to make friends (nw) --- src/emu/emumem.cpp | 3 --- src/emu/emumem.h | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp index ae3e95a0b3b..f88a3527c24 100644 --- a/src/emu/emumem.cpp +++ b/src/emu/emumem.cpp @@ -208,9 +208,6 @@ static char *core_i64_hex_format(u64 value, u8 mindigits) // CONSTANTS //************************************************************************** -// banking constants -const int BANK_ENTRY_UNSPECIFIED = -1; - // other address map constants const int MEMORY_BLOCK_CHUNK = 65536; // minimum chunk size of allocated memory blocks diff --git a/src/emu/emumem.h b/src/emu/emumem.h index c6fe9c57e45..960fbff54cc 100644 --- a/src/emu/emumem.h +++ b/src/emu/emumem.h @@ -260,6 +260,8 @@ class handler_entry { DISABLE_COPYING(handler_entry); + template friend class address_space_specific; + public: // Typing flags static constexpr u32 F_DISPATCH = 0x00000001; // handler that forwards the access to other handlers @@ -304,8 +306,6 @@ public: protected: // Address range storage struct range { - template friend class address_space_specific; - offs_t start; offs_t end;