From 43c509254fab375c49936498da944658117ed07c Mon Sep 17 00:00:00 2001 From: Shinya Kuribayashi Date: Thu, 17 Apr 2008 23:35:13 +0900 Subject: Use jr as register jump instruction Current assembler codes are inconsistent in the way of register jump instruction usage; some use jr, some use j. Of course GNU as allows both usages, but as can be expected from `Jump Register' the mnemonic `jr' is more intuitive than `j'. For example, Linux doesn't have `j ' usage at all. Signed-off-by: Shinya Kuribayashi --- cpu/mips/cache.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/mips/cache.S') diff --git a/cpu/mips/cache.S b/cpu/mips/cache.S index 89ada71..f593968 100644 --- a/cpu/mips/cache.S +++ b/cpu/mips/cache.S @@ -282,7 +282,7 @@ LEAF(dcache_disable) and t0, t0, t1 ori t0, t0, CONF_CM_UNCACHED mtc0 t0, CP0_CONFIG - j ra + jr ra END(dcache_disable) #ifdef CFG_INIT_RAM_LOCK_MIPS @@ -308,7 +308,7 @@ mips_cache_lock: move a1, a2 icacheop(a0,a1,a2,a3,0x1d) - j ra + jr ra .end mips_cache_lock #endif /* CFG_INIT_RAM_LOCK_MIPS */ -- cgit v1.1