From fd1e01579c90819db09dfff182500a6c86fabb43 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Mon, 20 Mar 2017 10:28:11 +0100
Subject: [PATCH] bugfix: set cpuf in oaisim

---
 targets/SIMU/USER/oaisim.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/targets/SIMU/USER/oaisim.c b/targets/SIMU/USER/oaisim.c
index 7c1ea1a3c8..f1b3944a16 100644
--- a/targets/SIMU/USER/oaisim.c
+++ b/targets/SIMU/USER/oaisim.c
@@ -1332,6 +1332,8 @@ main (int argc, char **argv)
   if (oai_emulation.info.opp_enabled == 1)
     reset_opp_meas_oaisim ();
 
+  cpuf=get_cpu_freq_GHz();
+
   init_time ();
 
   init_slot_isr ();
-- 
2.26.2