From 392a6e6eb859181e612d0bccd00cef8364ff393c Mon Sep 17 00:00:00 2001 From: Horst Schirmeier Date: Thu, 11 Apr 2013 10:39:34 +0200 Subject: [PATCH] core/sal: correct timer ticks/sec calculation Change-Id: I0971fe8a21c9ed3415d98b5e6387299beb3121e6 --- src/core/sal/bochs/BochsController.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/sal/bochs/BochsController.hpp b/src/core/sal/bochs/BochsController.hpp index e6bb2743..70deabe3 100644 --- a/src/core/sal/bochs/BochsController.hpp +++ b/src/core/sal/bochs/BochsController.hpp @@ -116,7 +116,7 @@ public: */ void fireInterruptDone(); virtual simtime_t getTimerTicks() { return bx_pc_system.time_ticks(); } - virtual simtime_t getTimerTicksPerSecond() { return bx_pc_system.time_ticks() / bx_pc_system.time_usec(); /* imprecise hack */ } + virtual simtime_t getTimerTicksPerSecond() { return bx_pc_system.time_ticks() / bx_pc_system.time_usec() * 1000000; /* imprecise hack */ } /* ******************************************************************** * BochsController-specific (not implemented in SimulatorController!): * ********************************************************************/