debug_view_memory_source::debug_view_memory_source(const char *name, memory_region ®ion) : debug_view_source(name), m_space(nullptr), m_memintf(nullptr), m_base(region.base()), m_length(region.bytes()), m_offsetxor(ENDIAN_VALUE_NE_NNE(region.endianness(), 0, region.bytewidth() - 1)), m_endianness(region.endianness()), m_prefsize(std::min<u8>(region.bytewidth(), 8)) { }
debug_view_memory_source::debug_view_memory_source(const char *name, memory_region ®ion) : debug_view_source(name), m_space(NULL), m_memintf(NULL), m_base(region), m_length(region.bytes()), m_offsetxor(NATIVE_ENDIAN_VALUE_LE_BE(region.width() - 1, 0)), m_endianness(region.endianness()), m_prefsize(MIN(region.width(), 8)) { }