fixed most of the -Wunreachable-code-break and -Wunreachable-code-return warnings of clang 3.5 when compiling MESS (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-08 12:00:45 +00:00
parent ad0cdb4ad2
commit 3568cf772f
143 changed files with 100 additions and 312 deletions

View File

@ -150,7 +150,6 @@ UINT8 a2bus_applicard_device::read_c0nx(address_space &space, UINT8 offset)
case 6: // IRQ on Z80 via CTC channel 3 (CP/M doesn't use the CTC or IRQs)
fatalerror("Applicard: Z80 IRQ not supported yet\n");
break;
case 7: // NMI on Z80 (direct)
m_z80->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
@ -255,7 +254,8 @@ READ8_MEMBER( a2bus_applicard_device::dma_r )
{
return m_z80ram[offset];
}
return 0xff;
// never executed
//return 0xff;
}

View File

@ -176,7 +176,6 @@ UINT8 a2bus_hsscsi_device::read_c0nx(address_space &space, UINT8 offset)
case 7:
// printf("Read 5380 @ %x\n", offset);
return m_ncr5380->read(space, offset);
break;
case 0xc:
return 0x00; // indicate watchdog?

View File

@ -167,7 +167,6 @@ UINT8 a2bus_scsi_device::read_c0nx(address_space &space, UINT8 offset)
case 7:
// printf("Read 5380 @ %x\n", offset);
return m_ncr5380->read(space, offset);
break;
case 8: // read and DACK
return m_ncr5380->dma_r();

View File

@ -188,7 +188,6 @@ UINT8 a2bus_vulcanbase_device::read_c0nx(address_space &space, UINT8 offset)
{
return m_ata->read_cs0(space, offset, 0xff);
}
break;
case 2:
case 3:

View File

@ -172,7 +172,6 @@ static const char *line_value_string(cococart_line_value value)
break;
default:
fatalerror("Invalid value\n");
break;
}
return s;
}

View File

@ -203,7 +203,6 @@ WRITE32_MEMBER(gba_rom_flash_device::write_ram)
break;
default:
fatalerror("Unknown mem_mask for GBA flash write %x\n", mem_mask);
break;
}
}
@ -255,7 +254,6 @@ WRITE32_MEMBER(gba_rom_flash1m_device::write_ram)
break;
default:
fatalerror("Unknown mem_mask for GBA flash write %x\n", mem_mask);
break;
}
}

View File

@ -921,7 +921,6 @@ READ8_MEMBER( isa8_aga_pc200_device::pc200_videoram_r )
case AGA_MONO:
return m_videoram[offset];
}
return 0;
}
WRITE8_MEMBER ( isa8_aga_pc200_device::pc200_videoram_w )

View File

@ -1329,7 +1329,6 @@ READ8_MEMBER(isa16_gus_device::board_r)
logerror("GUS: Invalid or unimplemented read of port 0x2X%01x\n",offset);
return 0xff;
}
return 0xff;
}
WRITE8_MEMBER(isa16_gus_device::board_w)
@ -1385,7 +1384,6 @@ READ8_MEMBER(isa16_gus_device::synth_r)
logerror("GUS: Invalid or unimplemented register read of port 0x3X%01x\n",offset);
return 0xff;
}
return 0xff;
}
WRITE8_MEMBER(isa16_gus_device::synth_w)

View File

@ -301,7 +301,6 @@ void isa8_device::install_space(address_spacenum spacenum, offs_t start, offs_t
break;
default:
fatalerror("ISA8: Bus width %d not supported\n", buswidth);
break;
}
}
@ -530,7 +529,6 @@ void isa16_device::install16_device(offs_t start, offs_t end, offs_t mask, offs_
break;
default:
fatalerror("ISA16: Bus width %d not supported\n", buswidth);
break;
}
}

View File

@ -284,7 +284,7 @@ void s3virge_vga_device::s3_define_video_mode()
case 0x03: svga.rgb15_en = 1; divisor = 2; break;
case 0x05: svga.rgb16_en = 1; divisor = 2; break;
case 0x0d: svga.rgb32_en = 1; divisor = 1; break;
default: fatalerror("TODO: s3 video mode not implemented %02x\n",((s3.ext_misc_ctrl_2) >> 4)); break;
default: fatalerror("TODO: s3 video mode not implemented %02x\n",((s3.ext_misc_ctrl_2) >> 4));
}
}
else

View File

@ -273,8 +273,6 @@ int msx_slot_cartridge_device::get_cart_type(UINT8 *rom, UINT32 length)
{
return (asc8 > asc16) ? ASCII8 : ASCII16;
}
return NOMAPPER;
}

View File

@ -104,7 +104,8 @@ READ16_MEMBER(kof98_prot_device::kof98_prot_r)
else
return m_default_rom[1];
return 0xffff;
// never executed
//return 0xffff;
}
WRITE16_MEMBER( kof98_prot_device::kof98_prot_w )

View File

@ -266,7 +266,6 @@ void nes_exrom_device::set_mirror(int page, int src)
break;
default:
fatalerror("This should never happen\n");
break;
}
}

View File

@ -138,7 +138,6 @@ void nubus_device::install_device(offs_t start, offs_t end, read8_delegate rhand
break;
default:
fatalerror("NUBUS: Bus width %d not supported\n", buswidth);
break;
}
}
@ -156,7 +155,6 @@ void nubus_device::install_device(offs_t start, offs_t end, read16_delegate rhan
break;
default:
fatalerror("NUBUS: Bus width %d not supported\n", buswidth);
break;
}
}
@ -174,7 +172,6 @@ void nubus_device::install_device(offs_t start, offs_t end, read32_delegate rhan
break;
default:
fatalerror("NUBUS: Bus width %d not supported\n", buswidth);
break;
}
}
@ -192,7 +189,6 @@ void nubus_device::install_readonly_device(offs_t start, offs_t end, read32_dele
break;
default:
fatalerror("NUBUS: Bus width %d not supported\n", buswidth);
break;
}
}
@ -210,7 +206,6 @@ void nubus_device::install_writeonly_device(offs_t start, offs_t end, write32_de
break;
default:
fatalerror("NUBUS: Bus width %d not supported\n", buswidth);
break;
}
}
@ -443,7 +438,6 @@ void device_nubus_card_interface::install_declaration_rom(device_t *dev, const c
default:
fatalerror("NuBus: unhandled byteLanes value %02x\n", byteLanes);
break;
}
// the slot manager can supposedly handle inverted ROMs by itself, but let's do it for it anyway

View File

@ -219,7 +219,6 @@ UINT32 nubus_cb264_device::screen_update(screen_device &screen, bitmap_rgb32 &bi
default:
fatalerror("cb264: unknown video mode %d\n", m_cb264_mode);
break;
}
return 0;

View File

@ -218,7 +218,6 @@ UINT32 nubus_m2hires_device::screen_update(screen_device &screen, bitmap_rgb32 &
default:
fatalerror("m2hires: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -219,7 +219,6 @@ UINT32 nubus_m2video_device::screen_update(screen_device &screen, bitmap_rgb32 &
default:
fatalerror("m2video: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -222,7 +222,6 @@ UINT32 nubus_spec8s3_device::screen_update(screen_device &screen, bitmap_rgb32 &
default:
fatalerror("spec8s3: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -236,7 +236,6 @@ UINT32 nubus_specpdq_device::screen_update(screen_device &screen, bitmap_rgb32 &
default:
fatalerror("specpdq: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -206,7 +206,6 @@ UINT32 nubus_wsportrait_device::screen_update(screen_device &screen, bitmap_rgb3
default:
fatalerror("wsportrait: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -220,7 +220,6 @@ UINT32 nubus_xceed30hr_device::screen_update(screen_device &screen, bitmap_rgb32
default:
fatalerror("xceed30hr: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -230,7 +230,6 @@ UINT32 nubus_cb264se30_device::screen_update(screen_device &screen, bitmap_rgb32
default:
fatalerror("cb264se30: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -233,7 +233,6 @@ UINT32 nubus_xceedmc30_device::screen_update(screen_device &screen, bitmap_rgb32
default:
fatalerror("xceedmc30: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -237,7 +237,6 @@ UINT32 nubus_procolor816_device::screen_update(screen_device &screen, bitmap_rgb
default:
fatalerror("procolor816: unknown video mode %d\n", m_mode);
break;
}
return 0;
}

View File

@ -134,7 +134,6 @@ UINT32 i82439tx_device::pci_read(pci_bus_device *pcibus, int function, int offse
default:
fatalerror("i82439tx_pci_read(): Unexpected PCI read 0x%02X\n", offset);
break;
}
return result;
}
@ -251,7 +250,6 @@ void i82439tx_device::pci_write(pci_bus_device *pcibus, int function, int offset
default:
fatalerror("i82439tx_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X\n", offset, data);
break;
}
}

View File

@ -155,7 +155,6 @@ UINT32 mpc105_device::pci_read(pci_bus_device *pcibus, int function, int offset,
default:
fatalerror("Unknown CPU\n");
break;
}
break;

View File

@ -586,5 +586,6 @@ int scsihle_device::get_scsi_cmd_len(int cbyte)
fatalerror("scsihle: Unknown SCSI command group %d, command byte=%02X\n", group,cbyte);
return 6;
// never executed
//return 6;
}

View File

@ -329,7 +329,8 @@ READ8_MEMBER(sns_rom_bsx_device::read_l)
return m_rom[rom_bank_map[bank] * 0x8000 + (offset & 0x7fff)];
}
return 0x00;
// never executed
//return 0x00;
}
@ -353,7 +354,8 @@ READ8_MEMBER(sns_rom_bsx_device::read_h)
return m_rom[rom_bank_map[bank] * 0x8000 + (offset & 0x7fff)];
}
return 0x00;
// never executed
//return 0x00;
}
WRITE8_MEMBER(sns_rom_bsx_device::write_l)

View File

@ -80,7 +80,6 @@ UINT8 n8x300_cpu_device::get_reg(UINT8 reg)
// IVR is write-only
default: logerror("8X300: Invalid register %02x read.\n",reg); return 0;
}
return 0;
}
void n8x300_cpu_device::device_start()

View File

@ -711,7 +711,6 @@ void adsp21xx_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(adsp21xx) called for unexpected value\n");
break;
}
}

View File

@ -482,7 +482,8 @@ UINT32 am29000_cpu_device::read_program_word(UINT32 address)
{
fatalerror("Am29000 instruction MMU translation enabled!\n");
}
return 0;
// never executed
//return 0;
}
/***************************************************************************

View File

@ -1295,7 +1295,6 @@ UINT32 arm_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
if (pCarry) *pCarry = (rm & (1 << (k - 1)));
return LSR(rm, k);
}
break;
case 2: /* ASR */
if (k == 0 || k > 32)
@ -1310,7 +1309,6 @@ UINT32 arm_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
else
return LSR(rm, k);
}
break;
case 3: /* ROR and RRX */
if (k)
@ -1324,7 +1322,6 @@ UINT32 arm_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
if (pCarry) *pCarry = (rm & 1);
return LSR(rm, 1) | ((R15 & C_MASK) << 2);
}
break;
}
logerror("%08x: Decodeshift error\n",R15);

View File

@ -227,7 +227,6 @@ int arm7_cpu_device::detect_fault(int permission, int ap, int flags)
{
return FAULT_DOMAIN;
}
break;
case 1 : // "Client - Accesses are checked against the access permission bits in the section or page descriptor"
{
switch (ap)
@ -286,7 +285,6 @@ int arm7_cpu_device::detect_fault(int permission, int ap, int flags)
{
return FAULT_NONE;
}
break;
}
}
break;
@ -294,12 +292,10 @@ int arm7_cpu_device::detect_fault(int permission, int ap, int flags)
{
return FAULT_DOMAIN;
}
break;
case 3 : // "Manager - Accesses are not checked against the access permission bits so a permission fault cannot be generated"
{
return FAULT_NONE;
}
break;
}
return FAULT_NONE;
}
@ -749,7 +745,6 @@ void arm7_cpu_device::execute_run()
break;
case COND_NV:
{ UNEXECUTED(); goto skip_exec; }
break;
}
/*******************************************************************/
/* If we got here - condition satisfied, so decode the instruction */

View File

@ -103,7 +103,6 @@ UINT32 arm7_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
}
return k ? LSL(rm, k) : rm;
}
break;
case 1: /* LSR */
if (k == 0 || k == 32)
@ -124,7 +123,6 @@ UINT32 arm7_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
*pCarry = (rm & (1 << (k - 1)));
return LSR(rm, k);
}
break;
case 2: /* ASR */
if (k == 0 || k > 32)
@ -141,7 +139,6 @@ UINT32 arm7_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
else
return LSR(rm, k);
}
break;
case 3: /* ROR and RRX */
if (k)
@ -159,7 +156,6 @@ UINT32 arm7_cpu_device::decodeShift(UINT32 insn, UINT32 *pCarry)
*pCarry = (rm & 1);
return LSR(rm, 1) | ((GET_CPSR & C_MASK) << 2);
}
break;
}
LOG(("%08x: Decodeshift error\n", R15));

View File

@ -243,7 +243,6 @@ cop400_cpu_device::cop400_cpu_device(const machine_config &mconfig, device_type
default:
fatalerror("No or unknown featuremask supplied\n");
break;
}
}

View File

@ -520,7 +520,6 @@ int drcbe_c::execute(code_handle &entry)
// these opcodes should be processed at compile-time only
fatalerror("Unexpected opcode\n");
break;
case MAKE_OPCODE_SHORT(OP_DEBUG, 4, 0): // DEBUG pc
debugger_instruction_hook(&m_device, PARAM0);
@ -2074,14 +2073,14 @@ int drcbe_c::execute(code_handle &entry)
default:
fatalerror("Unexpected opcode!\n");
break;
}
// advance past the parameters and immediates
inst += OPCODE_GET_PWORDS(opcode);
}
return 0;
// never executed
//return 0;
}
@ -2165,7 +2164,6 @@ void drcbe_c::output_parameter(drcbec_instruction **dstptr, void **immedptr, int
default:
fatalerror("Unexpected param->type\n");
break;
}
*dstptr = dst;

View File

@ -445,7 +445,6 @@ drcbe_x64::be_parameter::be_parameter(drcbe_x64 &drcbe, const parameter &param,
// everything else is unexpected
default:
fatalerror("Unexpected parameter type\n");
break;
}
}

View File

@ -323,7 +323,6 @@ drcbe_x86::be_parameter::be_parameter(drcbe_x86 &drcbe, const parameter &param,
// everything else is unexpected
default:
fatalerror("Unexpected parameter type\n");
break;
}
}

View File

@ -54,7 +54,8 @@ astring disasmYField(const UINT8& Y)
default: return "UNKNOWN";
}
return "";
// never executed
//return "";
}
astring disasmZField(const UINT8& Z)
@ -83,7 +84,8 @@ astring disasmZField(const UINT8& Z)
default: return "UNKNOWN";
}
return "";
// never executed
//return "";
}
astring disasmF2Field(const UINT8& F2, const UINT8& D, const UINT8& S)
@ -139,7 +141,8 @@ astring disasmCONField(const UINT8& CON)
default: return "RESERVED";
}
return "";
// never executed
//return "";
}
astring disasmBField(const UINT8& B)
@ -157,7 +160,8 @@ astring disasmBField(const UINT8& B)
default: return "UNKNOWN";
}
return "";
// never executed
//return "";
}
astring disasmRImmediateField(const UINT8& R)
@ -175,7 +179,8 @@ astring disasmRImmediateField(const UINT8& R)
default: return "UNKNOWN";
}
return "";
// never executed
//return "";
}
astring disasmRField(const UINT8& R)
@ -213,7 +218,8 @@ astring disasmRField(const UINT8& R)
default: return "RESERVED";
}
return "";
// never executed
//return "";
}
astring disasmIField(const UINT8& I)
@ -227,7 +233,8 @@ astring disasmIField(const UINT8& I)
default: return "UNKNOWN";
}
return "";
// never executed
//return "";
}
bool disasmSIField(const UINT8& SI)

View File

@ -330,7 +330,6 @@ void dsp32c_device::state_import(const device_state_entry &entry)
default:
fatalerror("dsp32c_device::state_import called for unexpected value\n");
break;
}
}
@ -361,7 +360,6 @@ void dsp32c_device::state_export(const device_state_entry &entry)
default:
fatalerror("dsp32c_device::state_export called for unexpected value\n");
break;
}
}

View File

@ -571,7 +571,6 @@ READ16_MEMBER( dsp56k_device::peripheral_register_r )
DSP56K::HRDF_bit_set(cpustate, 0);
return value;
}
break;
// COSR
case 0xffe8: break;
@ -931,7 +930,6 @@ UINT8 dsp56k_host_interface_read(device_t* device, UINT8 offset)
return 0xbf;
else
return RXH;
break;
// Receive byte register - low byte (RXL)
case 0x07:
@ -944,7 +942,6 @@ UINT8 dsp56k_host_interface_read(device_t* device, UINT8 offset)
DSP56K::RXDF_bit_set(cpustate, 0);
return value;
}
break;
default: logerror("DSP56k : dsp56k_host_interface_read called with invalid address 0x%02x.\n", offset);
}

View File

@ -479,7 +479,8 @@ int dsp56k_get_irq_index_by_tag(const char* tag)
}
fatalerror("DSP56K ERROR : IRQ TAG specified incorrectly (get_vector_by_tag) : %s.\n", tag);
return -1;
// never executed
//return -1;
}
} // namespace DSP56K

View File

@ -215,7 +215,8 @@ static inline char * DESCRIBE_REG(char *s, UINT8 r, const char *name) {
return stpcpy_int(s, REGNAME(r));
}
return 0;
// never executed
//return 0;
}
const alu_op_t es5510_device::ALU_OPS[16] = {

View File

@ -496,5 +496,4 @@ void h8_adc_2655_device::do_buffering(int buffer)
int h8_adc_2655_device::get_channel_index(int count)
{
abort();
return 0;
}

View File

@ -1019,4 +1019,3 @@ case 0xFF: /* nop */
default:
/*logerror*/fatalerror( "%02x:%04x: unimplemented instruction %02x encountered\n", m_cseg, m_ip-1, op );
break;

View File

@ -1055,7 +1055,6 @@ void i8085a_cpu_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(i808x) called for unexpected value\n");
break;
}
}
@ -1079,7 +1078,6 @@ void i8085a_cpu_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(i808x) called for unexpected value\n");
break;
}
}

View File

@ -248,7 +248,6 @@ int i8089_channel::execute_run()
case DMA_WAIT_FOR_SOURCE_DRQ:
fatalerror("%s('%s'): wait for source drq not supported\n", shortname(), tag());
break;
case DMA_FETCH:
if (VERBOSE_DMA)
@ -306,11 +305,9 @@ int i8089_channel::execute_run()
case DMA_TRANSLATE:
fatalerror("%s('%s'): dma translate requested\n", shortname(), tag());
break;
case DMA_WAIT_FOR_DEST_DRQ:
fatalerror("%s('%s'): wait for destination drq not supported\n", shortname(), tag());
break;
case DMA_STORE:
if (VERBOSE_DMA)
@ -348,7 +345,6 @@ int i8089_channel::execute_run()
case DMA_COMPARE:
fatalerror("%s('%s'): dma compare requested\n", shortname(), tag());
break;
case DMA_TERMINATE:
if (VERBOSE_DMA)

View File

@ -2194,7 +2194,6 @@ bool i8086_common_cpu_device::common_op(UINT8 op)
set_SZPF_Word(tmp);
CLKM(ALU_RI16,ALU_MI16_RO);
break;
break;
case 0x10: /* NOT */
PutbackRMWord(~tmp);
CLKM(NEGNOT_R16,NEGNOT_M16);

View File

@ -81,7 +81,6 @@ void i960_cpu_device::send_iac(UINT32 adr)
break;
default:
fatalerror("I960: %x: IAC %08x %08x %08x %08x\n", m_PIP, iac[0], iac[1], iac[2], iac[3]);
break;
}
}
@ -129,7 +128,6 @@ UINT32 i960_cpu_device::get_ea(UINT32 opcode)
default:
fatalerror("I960: %x: unhandled MEMB mode %x\n", m_PIP, mode);
return 0;
}
}
}

View File

@ -1125,7 +1125,6 @@ void m68000_base_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(this) called for unexpected value\n");
break;
}
}
@ -1165,7 +1164,6 @@ void m68000_base_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(this) called for unexpected value\n");
break;
}
}

View File

@ -321,7 +321,7 @@ ATTR_FORCE_INLINE UINT8 hd6309_device::read_operand()
case ADDRESSING_MODE_REGISTER_B: return m_d.b.l;
case ADDRESSING_MODE_REGISTER_E: return m_w.b.h;
case ADDRESSING_MODE_REGISTER_F: return m_w.b.l;
default: fatalerror("Unexpected"); return 0x00;
default: fatalerror("Unexpected");
}
}
@ -345,7 +345,7 @@ ATTR_FORCE_INLINE UINT8 hd6309_device::read_operand(int ordinal)
case ADDRESSING_MODE_REGISTER_V: return (ordinal & 1) ? m_v.b.l : m_v.b.h;
case ADDRESSING_MODE_REGISTER_PC: return (ordinal & 1) ? m_pc.b.l : m_pc.b.h;
case ADDRESSING_MODE_ZERO: return 0x00;
default: fatalerror("Unexpected"); return 0x00;
default: fatalerror("Unexpected");
}
}
@ -364,7 +364,7 @@ ATTR_FORCE_INLINE void hd6309_device::write_operand(UINT8 data)
case ADDRESSING_MODE_REGISTER_E: m_w.b.h = data; break;
case ADDRESSING_MODE_REGISTER_F: m_w.b.l = data; break;
case ADDRESSING_MODE_ZERO: break;
default: fatalerror("Unexpected"); break;
default: fatalerror("Unexpected");
}
}
@ -387,7 +387,7 @@ ATTR_FORCE_INLINE void hd6309_device::write_operand(int ordinal, UINT8 data)
case ADDRESSING_MODE_REGISTER_V: *((ordinal & 1) ? &m_v.b.l : &m_v.b.h) = data; break;
case ADDRESSING_MODE_REGISTER_PC: *((ordinal & 1) ? &m_pc.b.l : &m_pc.b.h) = data; break;
case ADDRESSING_MODE_ZERO: break;
default: fatalerror("Unexpected"); break;
default: fatalerror("Unexpected");
}
}
@ -470,7 +470,6 @@ ATTR_FORCE_INLINE m6809_base_device::exgtfr_register hd6309_device::read_exgtfr_
case 15: value = ((UINT16) m_w.b.l) << 8 | m_w.b.l; break; // F
default:
fatalerror("Should not reach here");
break;
}
exgtfr_register result;
@ -507,7 +506,6 @@ ATTR_FORCE_INLINE void hd6309_device::write_exgtfr_register(UINT8 reg, m6809_bas
case 15: m_w.b.l = (UINT8) (value.word_value >> 0); break; // F
default:
fatalerror("Should not reach here");
break;
}
}
@ -614,7 +612,6 @@ void hd6309_device::register_register_op()
case 15: if (promote) set_regop16(m_w); else set_regop8(m_w.b.l); break; // F
default:
fatalerror("Should not reach here");
break;
}
// set source
@ -638,7 +635,6 @@ void hd6309_device::register_register_op()
case 15: m_addressing_mode = promote ? ADDRESSING_MODE_REGISTER_W : ADDRESSING_MODE_REGISTER_F; break; // F
default:
fatalerror("Should not reach here");
break;
}
// eat a single CPU cycle

View File

@ -137,7 +137,7 @@ inline ATTR_FORCE_INLINE UINT8 konami_cpu_device::read_operand(int ordinal)
case ADDRESSING_MODE_EA: return read_memory(m_ea.w + ordinal);
case ADDRESSING_MODE_IMMEDIATE: return read_opcode_arg();
case ADDRESSING_MODE_REGISTER_D: return (ordinal & 1) ? m_d.b.l : m_d.b.h;
default: fatalerror("Unexpected"); return 0x00;
default: fatalerror("Unexpected");
}
}
@ -164,7 +164,7 @@ ATTR_FORCE_INLINE void konami_cpu_device::write_operand(int ordinal, UINT8 data)
case ADDRESSING_MODE_IMMEDIATE: /* do nothing */ break;
case ADDRESSING_MODE_EA: write_memory(m_ea.w + ordinal, data); break;
case ADDRESSING_MODE_REGISTER_D: *((ordinal & 1) ? &m_d.b.l : &m_d.b.h) = data; break;
default: fatalerror("Unexpected"); break;
default: fatalerror("Unexpected");
}
}
@ -184,7 +184,8 @@ ATTR_FORCE_INLINE UINT16 &konami_cpu_device::ireg()
case 0x70: return m_pc.w;
default:
fatalerror("Should not get here");
return m_x.w;
// never executed
//return m_x.w;
}
}

View File

@ -425,7 +425,6 @@ void mb86233_cpu_device::ALU( UINT32 alu)
default:
fatalerror( "TGP: Unknown ALU op %x at PC:%04x\n", alu, GETPC() );
break;
}
}
@ -718,7 +717,6 @@ UINT32 mb86233_cpu_device::GETREGS( UINT32 reg, int source )
default:
fatalerror( "TGP: Unknown GETREG (%d) at PC=%04x\n", reg, GETPC() );
break;
}
}
else if ( mode == 2 ) /* Indexed */
@ -783,7 +781,8 @@ UINT32 mb86233_cpu_device::GETREGS( UINT32 reg, int source )
fatalerror( "TGP: Unknown GETREG mode %d at PC:%04x\n", mode, GETPC() );
}
return 0;
// never executed
//return 0;
}
void mb86233_cpu_device::SETREGS( UINT32 reg, UINT32 val )
@ -886,10 +885,7 @@ void mb86233_cpu_device::SETREGS( UINT32 reg, UINT32 val )
break;
default:
{
fatalerror( "TGP: Unknown register write (r:%d, mode:%d) at PC:%04x\n", reg, mode, GETPC());
}
break;
}
}
else
@ -980,7 +976,8 @@ UINT32 mb86233_cpu_device::INDIRECT( UINT32 reg, int source )
fatalerror( "TGP: Unknown INDIRECT mode %d at PC:%04x\n", mode, GETPC() );
}
return 0;
// never executed
//return 0;
}
/***************************************************************************
@ -1249,7 +1246,6 @@ void mb86233_cpu_device::execute_run()
default:
fatalerror( "TGP: Unknown TGP move (op=%02x) at PC:%x\n", op, GETPC());
break;
}
}
break;
@ -1564,11 +1560,9 @@ void mb86233_cpu_device::execute_run()
case 0x0e: /* RIIF */
fatalerror( "TGP: RIIF unimplemented at PC:%04x\n", GETPC() );
break;
default:
fatalerror( "TGP: Unknown Branch opcode (subtype=%d) at PC:%04x\n", subtype, GETPC() );
break;
}
}
}
@ -1625,11 +1619,9 @@ void mb86233_cpu_device::execute_run()
case 0x0e: /* RIUL */
fatalerror( "TGP: RIUL unimplemented at PC:%04x\n", GETPC() );
break;
default:
fatalerror( "TGP: Unknown Branch opcode (subtype=%d) at PC:%04x\n", subtype, GETPC() );
break;
}
}
}
@ -1642,7 +1634,6 @@ void mb86233_cpu_device::execute_run()
default:
fatalerror( "TGP: unknown opcode %08x at PC:%04x (%02x)\n", opcode, GETPC(),(opcode >> 26) & 0x3f );
break;
}
if ( GETFIFOWAIT() == 0 )

View File

@ -1266,7 +1266,6 @@ void mcs48_cpu_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(mcs48) called for unexpected value\n");
break;
}
}
@ -1293,7 +1292,6 @@ void mcs48_cpu_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(mcs48) called for unexpected value\n");
break;
}
}

View File

@ -2191,7 +2191,6 @@ void mcs51_cpu_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(mcs48) called for unexpected value\n");
break;
}
}
@ -2216,7 +2215,6 @@ void mcs51_cpu_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(mcs51) called for unexpected value\n");
break;
}
}

View File

@ -305,7 +305,8 @@ UINT32 mips3_device::compute_prid_register()
default:
fatalerror("Unknown MIPS flavor specified\n");
}
return 0x2000;
// never executed
//return 0x2000;
}

View File

@ -417,7 +417,6 @@ void r3000_device::state_import(const device_state_entry &entry)
default:
fatalerror("r3000_device::state_import called for unexpected value\n");
break;
}
}
@ -435,7 +434,6 @@ void r3000_device::state_export(const device_state_entry &entry)
default:
fatalerror("r3000_device::state_export called for unexpected value\n");
break;
}
}

View File

@ -288,7 +288,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal2;
}
break;
case 0xf1:
opcode = program_read_byte(pc+1);
@ -375,7 +374,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal2;
}
break;
case 0xf3:
opcode = program_read_byte(pc+1);
@ -485,7 +483,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal3;
}
break;
case 0xff:
opcode = program_read_byte(pc+2);
@ -516,12 +513,10 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal3;
}
break;
default:
goto illegal2;
}
break;
case 0xf4:
opcode = program_read_byte(pc+1);
@ -667,7 +662,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal2;
}
break;
case 0xf5:
opcode = program_read_byte(pc+1);
@ -721,7 +715,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal3;
}
break;
}
case 0x50: case 0x51: case 0x52: case 0x53: case 0x54: case 0x55: case 0x56: case 0x57:
@ -742,7 +735,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal3;
}
break;
}
case 0x70: case 0x71: case 0x72: case 0x73: case 0x74: case 0x75: case 0x76: case 0x77:
@ -870,7 +862,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal3;
}
break;
}
case 0xfc:
@ -892,7 +883,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal2;
}
break;
case 0xf6:
sprintf(buffer, "nop");
@ -1002,7 +992,6 @@ static int mn102_disassemble(char *buffer, UINT32 pc, const UINT8 *oprom)
default:
goto illegal2;
}
break;
case 0xf8: case 0xf9: case 0xfa: case 0xfb:
sprintf(buffer, "mov %s, d%d", i16str(r16s(pc+1)), opcode & 3);

View File

@ -2469,7 +2469,6 @@ void ppc_device::ppc4xx_dma_exec(int dmachan)
/* fly-by mode DMA */
case 1:
fatalerror("ppc4xx_dma_exec: fly-by DMA not implemented\n");
break;
/* software initiated memory-to-memory mode DMA */
case 2:
@ -2525,7 +2524,6 @@ void ppc_device::ppc4xx_dma_exec(int dmachan)
/* hardware initiated memory-to-memory mode DMA */
case 3:
fatalerror("ppc4xx_dma_exec: HW mem-to-mem DMA not implemented\n");
break;
}
}
@ -2808,8 +2806,6 @@ WRITE8_MEMBER( ppc4xx_device::ppc4xx_spu_w )
ppc4xx_spu_timer_reset();
break;
break;
case SPU4XX_BUFFER:
/* write to the transmit buffer and mark it full */
m_spu.txbuf = data;

View File

@ -1536,7 +1536,8 @@ inline UINT16 rsp_device::SATURATE_ACCUM1(int accum, UINT16 negative, UINT16 pos
}
}
return 0;
// never executed
//return 0;
}
#define WRITEBACK_RESULT() {memcpy(&m_v[VDREG].s[0], &vres[0], 16);}

View File

@ -3136,7 +3136,8 @@ inline UINT16 rsp_device::SATURATE_ACCUM1(int accum, UINT16 negative, UINT16 pos
}
}
}
return 0;
// never executed
//return 0;
}
#if USE_SIMD

View File

@ -369,7 +369,6 @@ void score7_cpu_device::gen_exception(int cause, UINT32 param)
case EXCEPTION_CPE:
case EXCEPTION_BUSEL_DATA:
fatalerror("unhandled exception: %d 0x%08x (PC=0x%08x)\n", cause, param, m_ppc);
break;
}
}

View File

@ -1670,7 +1670,6 @@ se3208_device::_OP se3208_device::DecodeOp(UINT16 Opcode)
return &se3208_device::MVFC;
else
return &se3208_device::MVTC;
break;
}
break;
}

View File

@ -1388,7 +1388,6 @@ static _OP DecodeOp(UINT16 Opcode)
return MVFC;
else
return MVTC;
break;
}
break;
}

View File

@ -123,7 +123,8 @@ READ32_MEMBER( sh3_base_device::sh3_internal_high_r )
case SH3_INTEVT_ADDR:
logerror("'%s' (%08x): unmapped internal read from %08x mask %08x (SH3 INTEVT - %08x)\n",tag(), m_pc & AM,(offset *4)+SH3_UPPER_REGBASE,mem_mask, m_sh3internal_upper[offset]);
fatalerror("INTEVT unsupported on SH3\n");
return m_sh3internal_upper[offset];
// never executed
//return m_sh3internal_upper[offset];
default:
@ -163,7 +164,6 @@ READ32_MEMBER( sh3_base_device::sh3_internal_r )
// logerror("'%s' (%08x): unmapped internal read from %08x mask %08x (INTEVT2)\n",tag(), m_pc & AM,(offset *4)+0x4000000,mem_mask);
return m_sh3internal_lower[offset];
}
break;
case IRR0_IRR1:
@ -184,7 +184,6 @@ READ32_MEMBER( sh3_base_device::sh3_internal_r )
fatalerror("'%s' (%08x): unmapped internal read from %08x mask %08x (IRR0/1 unused bits)\n",tag(), m_pc & AM,(offset *4)+0x4000000,mem_mask);
}
}
break;
case PADR_PBDR:
{

View File

@ -135,7 +135,6 @@ UINT32 adsp21062_device::sharc_iop_r(UINT32 address)
}
default: fatalerror("sharc_iop_r: Unimplemented IOP reg %02X at %08X\n", address, m_pc);
}
return 0;
}
void adsp21062_device::sharc_iop_w(UINT32 address, UINT32 data)

View File

@ -1011,7 +1011,8 @@ int tlcs90_device::sprint_arg(char *buffer, UINT32 pc, const char *pre, const e_
fatalerror("%04x: unimplemented addr mode = %d\n",pc,mode);
}
return 0;
// never executed
//return 0;
}
offs_t tlcs90_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
@ -1237,7 +1238,9 @@ int tlcs90_device::Test( UINT8 cond )
default:
fatalerror("%04x: unimplemented condition = %d\n",m_pc.w.l,cond);
}
return 0;
// never executed
//return 0;
}
void tlcs90_device::Push( UINT16 rr )

View File

@ -502,7 +502,6 @@ void tms3203x_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(tms3203x) called for unexpected value\n");
break;
}
}
@ -529,7 +528,6 @@ void tms3203x_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(tms3203x) called for unexpected value\n");
break;
}
}

View File

@ -178,7 +178,6 @@ void tms32082_mp_device::vector_loadstore()
default:
fatalerror("vector_loadstore(): ls bits = %02X\n", vector_ls_bits);
break;
}
}

View File

@ -336,7 +336,6 @@ static int print_arg (char *dest, int mode, int arg, const UINT8 *opram, unsigne
return sprintf (dest, "@>%04x(R%d)", base, arg);
else /* symbolic (direct) */
return sprintf (dest, "@>%04x", base);
break;
case 0x3: /* workspace register indirect auto increment */
return sprintf (dest, "*R%d+", arg);
}

View File

@ -466,7 +466,7 @@ void uml::instruction::simplify()
case SIZE_WORD: convert_to_mov_immediate((INT16)m_param[1].immediate()); break;
case SIZE_DWORD: convert_to_mov_immediate((INT32)m_param[1].immediate()); break;
case SIZE_QWORD: convert_to_mov_immediate((INT64)m_param[1].immediate()); break;
case SIZE_DQWORD: fatalerror("Invalid SEXT target size\n"); break;
case SIZE_DQWORD: fatalerror("Invalid SEXT target size\n");
}
break;

View File

@ -307,7 +307,7 @@ UINT32 v60_device::v60_update_psw_for_exception(int is_interrupt, int target_lev
UINT32 v60_device::opUNHANDLED()
{
fatalerror("Unhandled OpCode found : %02x at %08x\n", OpRead16(PC), PC);
return 0; /* never reached, fatalerror won't return */
//return 0; /* never reached, fatalerror won't return */
}
// Opcode jump table

View File

@ -2560,7 +2560,6 @@ void z180_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(z80) called for unexpected value\n");
break;
}
}
@ -2579,7 +2578,6 @@ void z180_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(z80) called for unexpected value\n");
break;
}
}

View File

@ -786,7 +786,6 @@ void z8_device::state_import(const device_state_entry &entry)
default:
fatalerror("CPU_IMPORT_STATE(z8) called for unexpected value\n");
break;
}
}
@ -805,7 +804,6 @@ void z8_device::state_export(const device_state_entry &entry)
default:
fatalerror("CPU_EXPORT_STATE(z8) called for unexpected value\n");
break;
}
}

View File

@ -3649,7 +3649,6 @@ void z80_device::state_import( const device_state_entry &entry )
default:
fatalerror("CPU_IMPORT_STATE() called for unexpected value\n");
break;
}
}
@ -3664,7 +3663,6 @@ void z80_device::state_export( const device_state_entry &entry )
default:
fatalerror("CPU_EXPORT_STATE() called for unexpected value\n");
break;
}
}

View File

@ -947,7 +947,6 @@ UINT64 debug_read_opcode(address_space &space, offs_t address, int size, int arg
default:
fatalerror("debug_read_opcode: unknown type = %d\n", space.data_width() / 8 * 10 + size);
break;
}
/* turn on debugger access */

View File

@ -4006,7 +4006,6 @@ analog_field::analog_field(ioport_field &field)
default:
fatalerror("Unknown analog port type -- don't know if it is absolute or not\n");
break;
}
// further processing for absolute controls

View File

@ -470,7 +470,8 @@ UINT8 lsi53c810_device::lsi53c810_reg_r( int offset )
fatalerror("LSI53C810: reg_r: Unknown reg %02X\n", offset);
}
return 0;
// never executed
//return 0;
}
void lsi53c810_device::lsi53c810_reg_w(int offset, UINT8 data)
@ -779,7 +780,6 @@ unsigned lsi53c810_device::lsi53c810_dasm(char *buf, UINT32 pc)
default:
fatalerror("unknown op 0x%08X\n", op);
break;
}
result = 8;
}

View File

@ -20,8 +20,6 @@ READ16_MEMBER( m68307cpu_device::m68307_internal_timer_r )
case m68307TIMER_TCN: /* 0x3 (0x126 / 0x136) */
//if (pc!=0x2182e) logerror("%08x m68307_internal_timer_r %08x (%04x) (TCN - Timer Counter for timer %d)\n", pc, offset*2,mem_mask, which);
return timer->read_tcn(mem_mask, which);
break;
default:
logerror("%08x m68307_internal_timer_r %08x, (%04x)\n", pc, offset*2,mem_mask);

View File

@ -118,7 +118,6 @@ void adc0808_device::device_timer(emu_timer &timer, device_timer_id id, int para
case 7:
input = m_in_in_7_cb();
break;
break;
}
m_sar = (255 * (input - vref_neg)) / (vref_pos - vref_neg);

View File

@ -116,7 +116,6 @@ void ds2404_device::ds2404_rom_cmd(UINT8 cmd)
default:
fatalerror("DS2404: Unknown ROM command %02X\n", cmd);
break;
}
}
@ -151,7 +150,6 @@ void ds2404_device::ds2404_cmd(UINT8 cmd)
default:
fatalerror("DS2404: Unknown command %02X\n", cmd);
break;
}
}

View File

@ -180,7 +180,8 @@ int jvs_device::handle_message(const UINT8 *send_buffer, UINT32 send_size, UINT8
return 0;
}
return -1;
// never executed
//return -1;
}
bool jvs_device::get_address_set_line()

View File

@ -58,7 +58,8 @@ UINT32 k033906_device::reg_r(int reg)
default:
fatalerror("%s: k033906_reg_r: %08X\n", machine().describe_context(), reg);
}
return 0;
// never executed
//return 0;
}
void k033906_device::reg_w(int reg, UINT32 data)

View File

@ -171,7 +171,8 @@ int mb89352_device::get_scsi_cmd_len(UINT8 cbyte)
fatalerror("MB89352: Unknown SCSI command group %d\n", group);
return 6;
// never executed
//return 6;
}
void mb89352_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)

View File

@ -2057,7 +2057,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PADIR = %02x\n", mem_mask, m_regs.padir);
return m_regs.padir << 8;
}
break;
case 0x402:
if (mem_mask & 0x00ff)
@ -2089,7 +2088,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PBDIR = %02x\n", mem_mask, m_regs.pbdir);
return m_regs.pbdir << 8;
}
break;
case 0x40a:
if (mem_mask & 0x00ff)
@ -2121,7 +2119,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PCDIR = %02x\n", mem_mask, m_regs.pcdir);
return m_regs.pcdir << 8;
}
break;
case 0x412:
if (mem_mask & 0x00ff)
@ -2153,7 +2150,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PDDIR = %02x\n", mem_mask, m_regs.pddir);
return m_regs.pddir << 8;
}
break;
case 0x41a:
if (mem_mask & 0x00ff)
@ -2178,7 +2174,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PDPOL = %02x\n", mem_mask, m_regs.pdpol);
return m_regs.pdpol << 8;
}
break;
case 0x41e:
if (mem_mask & 0x00ff)
@ -2210,7 +2205,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PEDIR = %02x\n", mem_mask, m_regs.pedir);
return m_regs.pedir << 8;
}
break;
case 0x422:
if (mem_mask & 0x00ff)
@ -2223,7 +2217,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PEPUEN = %02x\n", mem_mask, m_regs.pepuen);
return m_regs.pepuen << 8;
}
break;
case 0x428:
if (mem_mask & 0x00ff)
@ -2243,7 +2236,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PFDIR = %02x\n", mem_mask, m_regs.pfdir);
return m_regs.pfdir << 8;
}
break;
case 0x42a:
if (mem_mask & 0x00ff)
@ -2256,7 +2248,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PFPUEN = %02x\n", mem_mask, m_regs.pfpuen);
return m_regs.pfpuen << 8;
}
break;
case 0x430:
if (mem_mask & 0x00ff)
@ -2276,7 +2267,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PGDIR = %02x\n", mem_mask, m_regs.pgdir);
return m_regs.pgdir << 8;
}
break;
case 0x432:
if (mem_mask & 0x00ff)
@ -2289,7 +2279,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PGPUEN = %02x\n", mem_mask, m_regs.pgpuen);
return m_regs.pgpuen << 8;
}
break;
case 0x438:
if (mem_mask & 0x00ff)
@ -2309,7 +2298,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PJDIR = %02x\n", mem_mask, m_regs.pjdir);
return m_regs.pjdir << 8;
}
break;
case 0x43a:
if (mem_mask & 0x00ff)
@ -2341,7 +2329,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PKDIR = %02x\n", mem_mask, m_regs.pkdir);
return m_regs.pkdir << 8;
}
break;
case 0x442:
if (mem_mask & 0x00ff)
@ -2354,7 +2341,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PKPUEN = %02x\n", mem_mask, m_regs.pkpuen);
return m_regs.pkpuen << 8;
}
break;
case 0x448:
if (mem_mask & 0x00ff)
@ -2374,7 +2360,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PMDIR = %02x\n", mem_mask, m_regs.pmdir);
return m_regs.pmdir << 8;
}
break;
case 0x44a:
if (mem_mask & 0x00ff)
@ -2387,7 +2372,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): PMPUEN = %02x\n", mem_mask, m_regs.pmpuen);
return m_regs.pmpuen << 8;
}
break;
case 0x500:
verboselog(machine(), 2, "mc68328_r (%04x): PWMC = %04x\n", mem_mask, m_regs.pwmc);
@ -2578,7 +2562,6 @@ READ16_MEMBER( mc68328_device::read )
verboselog(machine(), 2, "mc68328_r (%04x): LPICF = %02x\n", mem_mask, m_regs.lpicf);
return m_regs.lpicf << 8;
}
break;
case 0xa22:
if (mem_mask & 0x00ff)

View File

@ -357,7 +357,7 @@ int mc6843_device::address_search( chrn_id* id )
}
}
return 0; /* unreachable */
//return 0; /* unreachable */
}

View File

@ -61,7 +61,8 @@ static int get_cmd_len(int cbyte)
fatalerror("NCR5380: Unknown SCSI command group %d\n", group);
return 6;
// never executed
//return 6;
}

View File

@ -167,7 +167,6 @@ void ncr5380n_device::step(bool timeout)
scsi_bus->data_w(scsi_refid, 0);
scsi_bus->ctrl_w(scsi_refid, 0, S_ALL);
fatalerror("need to wait for bus free\n");
break;
}
state &= STATE_MASK;

View File

@ -145,7 +145,6 @@ void ncr5390_device::step(bool timeout)
scsi_bus->data_w(scsi_refid, 0);
scsi_bus->ctrl_w(scsi_refid, 0, S_ALL);
fatalerror("need to wait for bus free\n");
break;
}
state = (state & STATE_MASK) | (ARB_ASSERT_SEL << SUB_SHIFT);
scsi_bus->ctrl_w(scsi_refid, S_SEL, S_SEL);

View File

@ -280,7 +280,6 @@ void ncr539x_device::device_timer(emu_timer &timer, device_timer_id tid, int par
default:
fatalerror("539x: Unhandled command %02x\n", m_command);
break;
}
break;

View File

@ -279,7 +279,6 @@ void netlist_mame_t::verror(const loglevel_e level, const char *format, va_list
case NL_ERROR:
emu_fatalerror error("netlist ERROR: %s\n", errstr.cstr());
throw error;
break;
}
}

View File

@ -467,7 +467,6 @@ UINT8 nscsi_full_device::scsi_get_data(int id, int pos)
return scsi_sense_buffer[pos];
default:
fatalerror("nscsi_full_device::scsi_get_data - unknown id\n");
return 0; // shut up compiler
}
}

View File

@ -579,7 +579,7 @@ void s3c44b0_device::lcd_configure()
case S3C44B0_PNRMODE_STN_04_SS : width = ((hozval + 1) * 4); break;
case S3C44B0_PNRMODE_STN_04_DS : width = ((hozval + 1) * 4); break;
case S3C44B0_PNRMODE_STN_08_SS : width = ((hozval + 1) * 8); break;
default : fatalerror("invalid display mode (%d)\n", dismode); break;
default : fatalerror("invalid display mode (%d)\n", dismode);
}
height = lineval + 1;
m_lcd.framerate = framerate;

View File

@ -394,7 +394,6 @@ UINT16 strataflash_device::read8_16(address_space& space, offs_t offset, bus_wid
case 0x3f:
return 0x00;
}
break;
}
return 0;

View File

@ -189,7 +189,6 @@ TIMER_CALLBACK_MEMBER(upd71071_device::dma_transfer_timer)
if (!m_dma_read_3_cb.isnull())
data = m_dma_read_3_cb(0);
break;
break;
}
space.write_byte(m_reg.address_current[channel], data & 0xff);
if (m_reg.mode_control[channel] & 0x20) // Address direction
@ -228,7 +227,6 @@ TIMER_CALLBACK_MEMBER(upd71071_device::dma_transfer_timer)
if (!m_dma_write_3_cb.isnull())
m_dma_write_3_cb((offs_t)0, data);
break;
break;
}
if (m_reg.mode_control[channel] & 0x20) // Address direction
m_reg.address_current[channel]--;

View File

@ -613,7 +613,6 @@ READ8_MEMBER(wd33c93_device::read)
/* read aux status */
return regs[WD_AUXILIARY_STATUS];
}
break;
case 1:
{

View File

@ -684,7 +684,6 @@ void z80dma_device::write(UINT8 data)
{
case COMMAND_ENABLE_AFTER_RETI:
fatalerror("Z80DMA '%s' Unimplemented WR6 command %02x\n", tag(), data);
break;
case COMMAND_READ_STATUS_BYTE:
if (LOG) logerror("Z80DMA '%s' CMD Read status Byte\n", tag());
READ_MASK = 1;

View File

@ -148,28 +148,20 @@ pstring netlist_setup_t::objtype_as_astr(netlist_object_t &in) const
{
case netlist_terminal_t::TERMINAL:
return "TERMINAL";
break;
case netlist_terminal_t::INPUT:
return "INPUT";
break;
case netlist_terminal_t::OUTPUT:
return "OUTPUT";
break;
case netlist_terminal_t::NET:
return "NET";
break;
case netlist_terminal_t::PARAM:
return "PARAM";
break;
case netlist_terminal_t::DEVICE:
return "DEVICE";
break;
case netlist_terminal_t::NETLIST:
return "NETLIST";
break;
case netlist_terminal_t::QUEUE:
return "QUEUE";
break;
}
// FIXME: noreturn
netlist().error("Unknown object type %d\n", in.type());

View File

@ -219,7 +219,6 @@ void ef9340_1_device::ef9341_write( UINT8 command, UINT8 b, UINT8 data )
case 0xA0: /* Read slice */
default:
fatalerror/*logerror*/("ef9341 unimplemented data action %02X\n", m_ef9340.M & 0xE0 );
break;
}
m_ef9341.busy = 0;
}

View File

@ -292,7 +292,6 @@ const char *mc6847_friend_device::scanline_zone_string(scanline_zone zone)
case SCANLINE_ZONE_FRAME_END: result = "SCANLINE_ZONE_FRAME_END"; break;
default:
fatalerror("Should not get here\n");
break;
}
return result;
}
@ -715,7 +714,6 @@ ATTR_FORCE_INLINE void mc6847_base_device::record_body_scanline(UINT16 physical_
default:
/* should not get here */
fatalerror("should not get here\n");
break;
}
}
else
@ -799,7 +797,6 @@ ATTR_FORCE_INLINE mc6847_base_device::pixel_t mc6847_base_device::border_value(U
break;
default:
fatalerror("Should not get here\n");
break;
}
return result;
}

Some files were not shown because too many files have changed in this diff Show More