summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-06-08 20:43:41 +0200
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-06-08 20:43:59 +0200
commit0ae82382cbffe288df9f0902666c60139d1d0520 (patch)
tree6e6ed976f2518f4d01adeba3a42782758f76610a /src/devices
parenta3af73bafcac0f94de44430b6e2b521aac5481a9 (diff)
Fix build on MSVC thanks to Rene, also fix debug_break crashes
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/bus/isa/s3virge.cpp2
-rw-r--r--src/devices/cpu/alph8201/alph8201.cpp4
-rw-r--r--src/devices/cpu/arm/arm.cpp4
-rw-r--r--src/devices/cpu/avr8/avr8.cpp4
-rw-r--r--src/devices/cpu/dsp32/dsp32ops.hxx4
-rw-r--r--src/devices/cpu/mips/mips3.cpp2
-rw-r--r--src/devices/cpu/psx/psx.cpp2
-rw-r--r--src/devices/cpu/sh4/sh4.cpp4
-rw-r--r--src/devices/cpu/tms32031/32031ops.hxx2
-rw-r--r--src/devices/cpu/tms32031/tms32031.cpp2
-rw-r--r--src/devices/cpu/tms34010/34010ops.hxx2
-rw-r--r--src/devices/machine/aakart.cpp2
-rw-r--r--src/devices/machine/atahle.cpp2
-rw-r--r--src/devices/sound/l7a1045_l6028_dsp_a.cpp2
-rw-r--r--src/devices/video/pc_vga.cpp2
15 files changed, 20 insertions, 20 deletions
diff --git a/src/devices/bus/isa/s3virge.cpp b/src/devices/bus/isa/s3virge.cpp
index 979860a233e..1e2ccc27458 100644
--- a/src/devices/bus/isa/s3virge.cpp
+++ b/src/devices/bus/isa/s3virge.cpp
@@ -244,7 +244,7 @@ UINT8 s3virge_vga_device::s3_crtc_reg_read(UINT8 index)
break;
default:
res = vga.crtc.data[index];
- //machine.debugger().debug_break();
+ //machine.debug_break();
//printf("%02x\n",index);
break;
}
diff --git a/src/devices/cpu/alph8201/alph8201.cpp b/src/devices/cpu/alph8201/alph8201.cpp
index 7013dedf809..8fa4f51e762 100644
--- a/src/devices/cpu/alph8201/alph8201.cpp
+++ b/src/devices/cpu/alph8201/alph8201.cpp
@@ -274,7 +274,7 @@ void alpha8201_cpu_device::M_UNDEFINED()
osd_printf_debug("alpha8201: PC = %03x, Unimplemented opcode = %02x\n", m_pc.w.l-1, M_RDMEM(m_pc.w.l-1));
#endif
#if BREAK_ON_UNKNOWN_OPCODE
- machine().debugger().debug_break();
+ machine().debug_break();
#endif
}
@@ -287,7 +287,7 @@ void alpha8201_cpu_device::M_UNDEFINED2()
osd_printf_debug("alpha8201: PC = %03x, Unimplemented opcode = %02x,%02x\n", m_pc.w.l-2, op,imm);
#endif
#if BREAK_ON_UNKNOWN_OPCODE
- machine().debugger().debug_break();
+ machine().debug_break();
#endif
}
diff --git a/src/devices/cpu/arm/arm.cpp b/src/devices/cpu/arm/arm.cpp
index 01ce6ba96b9..d94534cf515 100644
--- a/src/devices/cpu/arm/arm.cpp
+++ b/src/devices/cpu/arm/arm.cpp
@@ -1390,7 +1390,7 @@ void arm_cpu_device::HandleCoProVL86C020( UINT32 insn )
0x00<<0 <- Revision number, 0
*/
SetRegister(rn, 0x41560300);
- //machine().debugger().debug_break();
+ //machine().debug_break();
}
else
SetRegister(rn, m_coproRegister[crn]);
@@ -1407,7 +1407,7 @@ void arm_cpu_device::HandleCoProVL86C020( UINT32 insn )
else
{
printf("%08x: Unimplemented VL86C020 copro instruction %08x %d %d\n", R15 & 0x3ffffff, insn,rn,crn);
- machine().debugger().debug_break();
+ machine().debug_break();
}
}
diff --git a/src/devices/cpu/avr8/avr8.cpp b/src/devices/cpu/avr8/avr8.cpp
index 8826ed6b91e..2d2dd04824d 100644
--- a/src/devices/cpu/avr8/avr8.cpp
+++ b/src/devices/cpu/avr8/avr8.cpp
@@ -706,7 +706,7 @@ void avr8_device::set_lock_bits(const UINT8 byte)
void avr8_device::unimplemented_opcode(UINT32 op)
{
-// machine().debugger().debug_break();
+// machine().debug_break();
fatalerror("AVR8: unknown opcode (%08x) at %08x\n", op, m_shifted_pc);
}
@@ -2915,7 +2915,7 @@ READ8_MEMBER( avr8_device::regs_r )
default:
printf("[%08X] AVR8: Unknown Register Read: 0x%03X\n", m_shifted_pc, offset);
-// machine().debugger().debug_break();
+// machine().debug_break();
return 0;
}
}
diff --git a/src/devices/cpu/dsp32/dsp32ops.hxx b/src/devices/cpu/dsp32/dsp32ops.hxx
index 768d1704102..e89aa74fed7 100644
--- a/src/devices/cpu/dsp32/dsp32ops.hxx
+++ b/src/devices/cpu/dsp32/dsp32ops.hxx
@@ -358,7 +358,7 @@ inline void dsp32c_device::dau_set_val_flags(int aidx, double res)
else if (absres > 3.40282e38)
{
m_VUflags = VFLAGBIT;
-// machine().debugger().debug_break();
+// machine().debug_break();
// fprintf(stderr, "Result = %g\n", absres);
res = (res < 0) ? -3.40282e38 : 3.40282e38;
}
@@ -403,7 +403,7 @@ inline UINT32 dsp32c_device::double_to_dsp(double val)
return 0x00000000;
else if (exponent > 255)
{
-// machine().debugger().debug_break();
+// machine().debug_break();
// fprintf(stderr, "Exponent = %d\n", exponent);
return ((INT32)id.i[BYTE_XOR_BE(0)] >= 0) ? 0x7fffffff : 0x800000ff;
}
diff --git a/src/devices/cpu/mips/mips3.cpp b/src/devices/cpu/mips/mips3.cpp
index f2b3252620e..73b5974bab7 100644
--- a/src/devices/cpu/mips/mips3.cpp
+++ b/src/devices/cpu/mips/mips3.cpp
@@ -224,7 +224,7 @@ void mips3_device::generate_exception(int exception, int backup)
if (exception != 0)
{
fprintf(stderr, "Exception: PC=%08X, PPC=%08X\n", m_core->pc, m_ppc);
- machine().debugger().debug_break();
+ machine().debug_break();
}
*/
diff --git a/src/devices/cpu/psx/psx.cpp b/src/devices/cpu/psx/psx.cpp
index e2522712961..35667a90374 100644
--- a/src/devices/cpu/psx/psx.cpp
+++ b/src/devices/cpu/psx/psx.cpp
@@ -299,7 +299,7 @@ WRITE32_MEMBER( psxcpu_device::biu_w )
void psxcpu_device::stop()
{
- machine().debugger().debug_break();
+ machine().debug_break();
debugger_instruction_hook( this, m_pc );
}
diff --git a/src/devices/cpu/sh4/sh4.cpp b/src/devices/cpu/sh4/sh4.cpp
index 2b906e3600a..3a9a24e1525 100644
--- a/src/devices/cpu/sh4/sh4.cpp
+++ b/src/devices/cpu/sh4/sh4.cpp
@@ -3028,7 +3028,7 @@ inline void sh34_base_device::op1111_0xf13(const UINT16 opcode)
FRCHG();
break;
default:
- machine().debugger().debug_break();
+ machine().debug_break();
break;
}
} else {
@@ -3041,7 +3041,7 @@ inline void sh34_base_device::op1111_0xf13(const UINT16 opcode)
void sh34_base_device::dbreak(const UINT16 opcode)
{
- machine().debugger().debug_break();
+ machine().debug_break();
}
diff --git a/src/devices/cpu/tms32031/32031ops.hxx b/src/devices/cpu/tms32031/32031ops.hxx
index 49af48fbe04..60f2ab5d07f 100644
--- a/src/devices/cpu/tms32031/32031ops.hxx
+++ b/src/devices/cpu/tms32031/32031ops.hxx
@@ -74,7 +74,7 @@ void tms3203x_device::illegal(UINT32 op)
if ((machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
{
logerror("Illegal op @ %06X: %08X (tbl=%03X)\n", m_pc - 1, op, op >> 21);
- machine().debugger().debug_break();
+ machine().debug_break();
}
}
diff --git a/src/devices/cpu/tms32031/tms32031.cpp b/src/devices/cpu/tms32031/tms32031.cpp
index a9ca572d963..69a5de94800 100644
--- a/src/devices/cpu/tms32031/tms32031.cpp
+++ b/src/devices/cpu/tms32031/tms32031.cpp
@@ -814,7 +814,7 @@ void tms3203x_device::execute_run()
{
// watch for out-of-range stack pointers
if (IREG(TMR_SP) & 0xff000000)
- machine().debugger().debug_break();
+ machine().debug_break();
if ((IREG(TMR_ST) & RMFLAG) && m_pc == IREG(TMR_RE) + 1)
{
if ((INT32)--IREG(TMR_RC) >= 0)
diff --git a/src/devices/cpu/tms34010/34010ops.hxx b/src/devices/cpu/tms34010/34010ops.hxx
index 29f31a0066d..486e4b2cb14 100644
--- a/src/devices/cpu/tms34010/34010ops.hxx
+++ b/src/devices/cpu/tms34010/34010ops.hxx
@@ -99,7 +99,7 @@ void tms340x0_device::unimpl(UINT16 op)
if (m_pc == 0 || s_opcode_table[m_direct->read_word(TOBYTE(m_pc)) >> 4] == &tms34010_device::unimpl)
{
set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
- machine().debugger().debug_break();
+ machine().debug_break();
}
}
diff --git a/src/devices/machine/aakart.cpp b/src/devices/machine/aakart.cpp
index 75c947641d4..c7b9e260243 100644
--- a/src/devices/machine/aakart.cpp
+++ b/src/devices/machine/aakart.cpp
@@ -165,7 +165,7 @@ void aakart_device::device_timer(emu_timer &timer, device_timer_id id, int param
READ8_MEMBER( aakart_device::read )
{
m_out_tx_cb(CLEAR_LINE);
- //machine().debugger().debug_break();
+ //machine().debug_break();
return m_rx;
}
diff --git a/src/devices/machine/atahle.cpp b/src/devices/machine/atahle.cpp
index a57ab19d73a..ce25fdcd679 100644
--- a/src/devices/machine/atahle.cpp
+++ b/src/devices/machine/atahle.cpp
@@ -211,7 +211,7 @@ void ata_hle_device::process_command()
m_status |= IDE_STATUS_ERR;
m_error = IDE_ERROR_ABRT;
set_irq(ASSERT_LINE);
- //machine().debugger().debug_break();
+ //machine().debug_break();
break;
}
}
diff --git a/src/devices/sound/l7a1045_l6028_dsp_a.cpp b/src/devices/sound/l7a1045_l6028_dsp_a.cpp
index 7941c204a28..ef2e4991b9c 100644
--- a/src/devices/sound/l7a1045_l6028_dsp_a.cpp
+++ b/src/devices/sound/l7a1045_l6028_dsp_a.cpp
@@ -295,7 +295,7 @@ WRITE16_MEMBER(l7a1045_sound_device::sound_data_w)
READ16_MEMBER(l7a1045_sound_device::sound_data_r)
{
//printf("%04x (%04x %04x)\n",offset,m_audioregister,m_audiochannel);
- //machine().debugger().debug_break();
+ //machine().debug_break();
l7a1045_voice *vptr = &m_voice[m_audiochannel];
switch(m_audioregister)
diff --git a/src/devices/video/pc_vga.cpp b/src/devices/video/pc_vga.cpp
index 50ffe09b115..c40d801eb11 100644
--- a/src/devices/video/pc_vga.cpp
+++ b/src/devices/video/pc_vga.cpp
@@ -2664,7 +2664,7 @@ UINT8 s3_vga_device::s3_crtc_reg_read(UINT8 index)
break;
default:
res = vga.crtc.data[index];
- //machine().debugger().debug_break();
+ //machine().debug_break();
//printf("%02x\n",index);
break;
}