summaryrefslogtreecommitdiffstats
path: root/src/hwpf/src/plat/plat_utils.C
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2016-10-07 04:56:07 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-10-09 00:51:14 -0400
commit99677ebabd43ad20feeee91e2fad9b06835b0654 (patch)
treedcb20fd0930152aeee5e9eba9d423296b8ed3496 /src/hwpf/src/plat/plat_utils.C
parent21747f2431b60a6e4ada4717c96a792c753addc6 (diff)
downloadtalos-sbe-99677ebabd43ad20feeee91e2fad9b06835b0654.tar.gz
talos-sbe-99677ebabd43ad20feeee91e2fad9b06835b0654.zip
Do not optimize busy for loop
Change-Id: Ia12a5ba093f7d1551d3c94d67fc324e80750951a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30869 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/hwpf/src/plat/plat_utils.C')
-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