diff --git a/bochs/config.h.in b/bochs/config.h.in index d307c8722..273da37eb 100644 --- a/bochs/config.h.in +++ b/bochs/config.h.in @@ -143,7 +143,7 @@ // Minimum Emulated IPS. // This is used in the realtime PIT as well as for checking the // IPS value set in the config file. -#define BX_MIN_IPS 200000 +#define BX_MIN_IPS 1000000 // Minimum and maximum values for SMP quantum variable. Defines // how many instructions each CPU could execute in one diff --git a/bochs/gui/gui.cc b/bochs/gui/gui.cc index c27f6faff..e573d5129 100644 --- a/bochs/gui/gui.cc +++ b/bochs/gui/gui.cc @@ -871,7 +871,7 @@ void bx_gui_c::graphics_tile_update_in_place(unsigned x0, unsigned y0, void bx_gui_c::show_ips(Bit32u ips_count) { #if BX_SHOW_IPS - BX_INFO(("ips = %u", ips_count)); + BX_INFO(("ips = %3.3fM", ips_count / 1000000.0)); #endif } diff --git a/bochs/gui/rfb.cc b/bochs/gui/rfb.cc index 4db69805a..832f5c8d8 100644 --- a/bochs/gui/rfb.cc +++ b/bochs/gui/rfb.cc @@ -1692,7 +1692,7 @@ void bx_rfb_gui_c::get_capabilities(Bit16u *xres, Bit16u *yres, Bit16u *bpp) void bx_rfb_gui_c::show_ips(Bit32u ips_count) { char ips_text[40]; - sprintf(ips_text, "IPS: %9u", ips_count); + sprintf(ips_text, "IPS: %3.3fM", ips_count / 1000000.0); rfbSetStatusText(0, ips_text, 1); } #endif diff --git a/bochs/gui/sdl.cc b/bochs/gui/sdl.cc index ce6669a3c..00fc47367 100644 --- a/bochs/gui/sdl.cc +++ b/bochs/gui/sdl.cc @@ -1610,7 +1610,7 @@ void bx_sdl_gui_c::set_display_mode(disp_mode_t newmode) void bx_sdl_gui_c::show_ips(Bit32u ips_count) { if (!sdl_ips_update) { - sprintf(sdl_ips_text, "IPS: %9u", ips_count); + sprintf(sdl_ips_text, "IPS: %3.3fM", ips_count / 1000000.0); sdl_ips_update = 1; } } diff --git a/bochs/gui/win32.cc b/bochs/gui/win32.cc index b485901b7..ed86a7836 100644 --- a/bochs/gui/win32.cc +++ b/bochs/gui/win32.cc @@ -2285,7 +2285,7 @@ VOID CALLBACK MyTimer(HWND hwnd,UINT uMsg, UINT idEvent, DWORD dwTime) void bx_win32_gui_c::show_ips(Bit32u ips_count) { if (!ipsUpdate) { - sprintf(ipsText, "IPS: %9u", ips_count); + sprintf(ipsText, "IPS: %3.3fM", ips_count / 1000000.0); ipsUpdate = TRUE; } } diff --git a/bochs/gui/wx.cc b/bochs/gui/wx.cc index b10b1e426..29c5e3c41 100644 --- a/bochs/gui/wx.cc +++ b/bochs/gui/wx.cc @@ -1676,7 +1676,7 @@ void bx_wx_gui_c::show_ips(Bit32u ips_count) bx_bool is_main_thread = wxThread::IsMain(); bx_bool needmutex = !is_main_thread && SIM->is_sim_thread(); if (needmutex) wxMutexGuiEnter(); - sprintf(ips_text, "IPS: %9u", ips_count); + sprintf(ips_text, "IPS: %3.3fM", ips_count / 1000000.0); theFrame->SetStatusText(wxString(ips_text, wxConvUTF8), 0); if (needmutex) wxMutexGuiLeave(); } diff --git a/bochs/gui/x.cc b/bochs/gui/x.cc index 7e4753530..61a88ccc6 100644 --- a/bochs/gui/x.cc +++ b/bochs/gui/x.cc @@ -2043,7 +2043,7 @@ void bx_x_gui_c::show_ips(Bit32u ips_count) { if (x11_mouse_msg_counter == 0) { if (!x11_ips_update && !x11_hide_ips) { - sprintf(x11_ips_text, "IPS: %9u", ips_count); + sprintf(x11_ips_text, "IPS: %3.3fM", ips_count / 1000000.0); x11_ips_update = 1; } } else {