add some diagnostic output for debugging

This commit is contained in:
Markus Fröschle
2016-10-17 05:45:54 +00:00
parent cb31dffa64
commit 12c99a1840
2 changed files with 92 additions and 67 deletions

View File

@@ -219,6 +219,7 @@ void x86emu_intr_raise(struct X86EMU *emu, uint8_t intrnum)
emu->x86.intno = intrnum;
emu->x86.intr |= INTR_SYNCH;
}
/****************************************************************************
REMARKS:
Main execution loop for the emulator. We return from here when the system
@@ -278,6 +279,8 @@ Halts the system by setting the halted system flag.
void
X86EMU_halt_sys(struct X86EMU *emu)
{
dbg("\r\n");
#ifdef _KERNEL
longjmp(&emu->exec_state);
#else
@@ -346,7 +349,7 @@ fetch_word_imm(struct X86EMU *emu)
}
/****************************************************************************
RETURNS:
Immediate lone value read from instruction queue
Immediate long value read from instruction queue
REMARKS:
This function returns the immediate byte from the instruction queue, and