summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hwpf/src/plat/plat_utils.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hwpf/src/plat/plat_utils.C b/src/hwpf/src/plat/plat_utils.C
index f9bbea9a..74980799 100644
--- a/src/hwpf/src/plat/plat_utils.C
+++ b/src/hwpf/src/plat/plat_utils.C
@@ -115,8 +115,10 @@ namespace fapi2
((l_adjusted_simcycles - (NUM_OVERHEAD_INSTRS * __FAPI_DELAY_PPE_SIM_CYCLES__)) /
(NUM_LOOP_INSTRS * __FAPI_DELAY_PPE_SIM_CYCLES__));
-
- for (auto i = delay_loop_count; i > 0; --i) {}
+ for (auto i = delay_loop_count; i > 0; --i) {
+ // Force compiler not to optimize for loop
+ asm("");
+ }
#endif
OpenPOWER on IntegriCloud