From 28bb1f8fd7af9bbdcc7f45e8f8b682b279953dda Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 19 Feb 2014 12:06:53 +0100 Subject: [PATCH] hw: remove use of float in exynos timer (fix #713) --- base-hw/src/core/timer/exynos_mct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base-hw/src/core/timer/exynos_mct.h b/base-hw/src/core/timer/exynos_mct.h index d742c9f10..72d992328 100644 --- a/base-hw/src/core/timer/exynos_mct.h +++ b/base-hw/src/core/timer/exynos_mct.h @@ -91,7 +91,7 @@ namespace Exynos_mct write(1); } - float const _tics_per_ms; + unsigned long const _tics_per_ms; /** * Start and stop counting @@ -108,7 +108,7 @@ namespace Exynos_mct * Constructor */ Timer(addr_t const base, unsigned const clk) - : Mmio(base), _tics_per_ms((float)clk / (PRESCALER + 1) / (1 << DIV_MUX) / 1000) + : Mmio(base), _tics_per_ms(clk / (PRESCALER + 1) / (1 << DIV_MUX) / 1000) { Mct_cfg::access_t mct_cfg = 0; Mct_cfg::Prescaler::set(mct_cfg, PRESCALER);