diff options
Diffstat (limited to 'src/devices/cpu/dspp/dsppdrc.cpp')
-rw-r--r-- | src/devices/cpu/dspp/dsppdrc.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/devices/cpu/dspp/dsppdrc.cpp b/src/devices/cpu/dspp/dsppdrc.cpp index 947c698576f..8134417748d 100644 --- a/src/devices/cpu/dspp/dsppdrc.cpp +++ b/src/devices/cpu/dspp/dsppdrc.cpp @@ -8,7 +8,6 @@ ******************************************************************************/ #include "emu.h" -#include "debugger.h" #include "dspp.h" #include "dsppfe.h" #include "cpu/drcfe.h" @@ -94,7 +93,7 @@ registers inline void dspp_device::load_fast_iregs(drcuml_block &block) { #if 0 // TODO - for (uint32_t regnum = 0; regnum < ARRAY_LENGTH(m_regmap); regnum++) + for (uint32_t regnum = 0; regnum < std::size(m_regmap); regnum++) { if (m_regmap[regnum].is_int_register()) { @@ -115,7 +114,7 @@ void dspp_device::save_fast_iregs(drcuml_block &block) #if 0 // TODO int regnum; - for (regnum = 0; regnum < ARRAY_LENGTH(m_regmap); regnum++) + for (regnum = 0; regnum < std::size(m_regmap); regnum++) { if (m_regmap[regnum].is_int_register()) { @@ -188,7 +187,7 @@ void dspp_device::compile_block(offs_t pc) const opcode_desc *seqhead, *seqlast; int override = false; - g_profiler.start(PROFILER_DRC_COMPILE); + auto profile = g_profiler.start(PROFILER_DRC_COMPILE); /* get a description of this sequence */ const opcode_desc *desclist = m_drcfe->describe_code(pc); @@ -269,7 +268,6 @@ void dspp_device::compile_block(offs_t pc) /* end the sequence */ block.end(); - g_profiler.stop(); succeeded = true; } catch (drcuml_block::abort_compilation &) @@ -501,10 +499,10 @@ void dspp_device::generate_set_rbase(drcuml_block &block, compiler_state *compil case 0: UML_MOV(block, mem(&m_core->m_rbase[0]), addr); UML_MOV(block, mem(&m_core->m_rbase[1]), addr + 4 - base); - // Intentional fall-through + [[fallthrough]]; case 8: UML_MOV(block, mem(&m_core->m_rbase[2]), addr + 8 - base); - // Intentional fall-through + [[fallthrough]]; case 12: UML_MOV(block, mem(&m_core->m_rbase[3]), addr + 12 - base); break; |