From cbee54fe1e7992aa97d451fbeb5e69b399750776 Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 18 Mar 2017 09:10:16 -0400 Subject: [PATCH] DRC: fix regression on OS X [Phil Bennett] --- src/devices/cpu/drcbec.cpp | 2 +- src/devices/cpu/drcbex64.cpp | 2 +- src/devices/cpu/drccache.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/drcbec.cpp b/src/devices/cpu/drcbec.cpp index ea0a3f08f5a..41566614233 100644 --- a/src/devices/cpu/drcbec.cpp +++ b/src/devices/cpu/drcbec.cpp @@ -286,7 +286,7 @@ const uint32_t drcbe_c::s_condition_map[] = drcbe_c::drcbe_c(drcuml_state &drcuml, device_t &device, drc_cache &cache, uint32_t flags, int modes, int addrbits, int ignorebits) : drcbe_interface(drcuml, cache, device), m_hash(cache, modes, addrbits, ignorebits), - m_map(cache, 0), + m_map(cache, 0xaaaaaaaa55555555), m_labels(cache), m_fixup_delegate(&drcbe_c::fixup_label, this) { diff --git a/src/devices/cpu/drcbex64.cpp b/src/devices/cpu/drcbex64.cpp index 2cc08888eb2..1950799624f 100644 --- a/src/devices/cpu/drcbex64.cpp +++ b/src/devices/cpu/drcbex64.cpp @@ -618,7 +618,7 @@ inline void drcbe_x64::emit_smart_call_m64(x86code *&dst, x86code **target) drcbe_x64::drcbe_x64(drcuml_state &drcuml, device_t &device, drc_cache &cache, uint32_t flags, int modes, int addrbits, int ignorebits) : drcbe_interface(drcuml, cache, device), m_hash(cache, modes, addrbits, ignorebits), - m_map(cache, 0), + m_map(cache, 0xaaaaaaaa5555), m_labels(cache), m_log(nullptr), m_sse41(false), diff --git a/src/devices/cpu/drccache.h b/src/devices/cpu/drccache.h index 48243a56482..5ff7045ecd8 100644 --- a/src/devices/cpu/drccache.h +++ b/src/devices/cpu/drccache.h @@ -72,7 +72,7 @@ private: static const size_t CODEGEN_MAX_BYTES = 65536; // minimum alignment, in bytes (must be power of 2) - static const size_t CACHE_ALIGNMENT = 8; + static const size_t CACHE_ALIGNMENT = alignof(std::max_align_t); // largest permanent allocation we allow static const size_t MAX_PERMANENT_ALLOC = 1024;