improve bochs exit dump in long64 mode

This commit is contained in:
Stanislav Shwartsman 2011-09-16 20:25:05 +00:00
parent 88a58b3781
commit 3632340dac

View File

@ -110,10 +110,10 @@ void BX_CPU_C::debug(bx_address offset)
{
BX_INFO(("CPU is in %s (%s)", cpu_mode_string(BX_CPU_THIS_PTR get_cpu_mode()),
cpu_state_string(BX_CPU_THIS_PTR activity_state)));
BX_INFO(("CS.d_b = %u bit",
BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].cache.u.segment.d_b ? 32 : 16));
BX_INFO(("SS.d_b = %u bit",
BX_CPU_THIS_PTR sregs[BX_SEG_REG_SS].cache.u.segment.d_b ? 32 : 16));
BX_INFO(("CS.mode = %u bit",
long64_mode() ? 64 : (BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].cache.u.segment.d_b ? 32 : 16)));
BX_INFO(("SS.mode = %u bit",
long64_mode() ? 64 : (BX_CPU_THIS_PTR sregs[BX_SEG_REG_SS].cache.u.segment.d_b ? 32 : 16)));
#if BX_SUPPORT_X86_64
BX_INFO(("EFER = 0x%08x", BX_CPU_THIS_PTR efer.get32()));
BX_INFO(("| RAX=%08x%08x RBX=%08x%08x",