summaryrefslogtreecommitdiff
path: root/arch/nios2/cpu
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-09-09 05:08:05 (GMT)
committerThomas Chou <thomas@wytron.com.tw>2015-10-22 23:28:50 (GMT)
commit651389a0558ac8062076d8192faa2cadf0e6ee07 (patch)
tree7524e4e97f95e7a6a8fba697f120c25617ba10fb /arch/nios2/cpu
parente6500f86a6ddac4c4a2cfcbd517283665563ef70 (diff)
downloadu-boot-651389a0558ac8062076d8192faa2cadf0e6ee07.tar.xz
nios2: zap dly_clks
The dly_clks() in start.S is no use after switching to generic timer. Remove it. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/nios2/cpu')
-rw-r--r--arch/nios2/cpu/start.S33
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
index f80b4f3..e92f06e 100644
--- a/arch/nios2/cpu/start.S
+++ b/arch/nios2/cpu/start.S
@@ -175,39 +175,6 @@ relocate_code:
callr r8
ret
-/*
- * dly_clks -- Nios2 (like Nios1) doesn't have a timebase in
- * the core. For simple delay loops, we do our best by counting
- * instruction cycles.
- *
- * Instruction performance varies based on the core. For cores
- * with icache and static/dynamic branch prediction (II/f, II/s):
- *
- * Normal ALU (e.g. add, cmp, etc): 1 cycle
- * Branch (correctly predicted, taken): 2 cycles
- * Negative offset is predicted (II/s).
- *
- * For cores without icache and no branch prediction (II/e):
- *
- * Normal ALU (e.g. add, cmp, etc): 6 cycles
- * Branch (no prediction): 6 cycles
- *
- * For simplicity, if an instruction cache is implemented we
- * assume II/f or II/s. Otherwise, we use the II/e.
- *
- */
- .globl dly_clks
-
-dly_clks:
-
-#if (CONFIG_SYS_ICACHE_SIZE > 0)
- subi r4, r4, 3 /* 3 clocks/loop */
-#else
- subi r4, r4, 12 /* 12 clocks/loop */
-#endif
- bge r4, r0, dly_clks
- ret
-
.data
.globl version_string