mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
ppc: fix mmu/exceptions debug messages
This commit is contained in:
parent
ccf190b4a9
commit
707ce1121b
@ -1739,7 +1739,10 @@ void ppc_device::generate_sequence_instruction(drcuml_block &block, compiler_sta
|
||||
if (PRINTF_MMU)
|
||||
{
|
||||
const char *text = "Compiler page fault @ %08X\n";
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
if (sizeof(uintptr_t) == 8)
|
||||
UML_DMOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
else
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
UML_MOV(block, mem(&m_core->arg0), desc->pc); // mov [arg0],desc->pc
|
||||
UML_CALLC(block, cfunc_printf_debug, this); // callc printf_debug
|
||||
}
|
||||
@ -1757,7 +1760,10 @@ void ppc_device::generate_sequence_instruction(drcuml_block &block, compiler_sta
|
||||
if (PRINTF_MMU)
|
||||
{
|
||||
const char *text = "Checking TLB at @ %08X\n";
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
if (sizeof(uintptr_t) == 8)
|
||||
UML_DMOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
else
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
UML_MOV(block, mem(&m_core->arg0), desc->pc); // mov [arg0],desc->pc
|
||||
UML_CALLC(block, cfunc_printf_debug, this); // callc printf_debug
|
||||
}
|
||||
@ -1772,7 +1778,10 @@ void ppc_device::generate_sequence_instruction(drcuml_block &block, compiler_sta
|
||||
if (PRINTF_MMU)
|
||||
{
|
||||
const char *text = "No valid TLB @ %08X\n";
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
if (sizeof(uintptr_t) == 8)
|
||||
UML_DMOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
else
|
||||
UML_MOV(block, mem(&m_core->format), (uintptr_t)text); // mov [format],text
|
||||
UML_MOV(block, mem(&m_core->arg0), desc->pc); // mov [arg0],desc->pc
|
||||
UML_CALLC(block, cfunc_printf_debug, this); // callc printf_debug
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user