riscv: remove redundant mv instructions
authorNam Cao <namcaov@gmail.com>
Tue, 25 Jul 2023 05:38:35 +0000 (07:38 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 31 Aug 2023 07:18:25 +0000 (00:18 -0700)
commit6b289a3ffa562070556ca66b766a88b1563d7759
treef86f556a558e1cf099324bc33e4fe1f6e63c2972
parent7aa7d502e4d5a42353325cb4bf2aa880b10168e9
riscv: remove redundant mv instructions

Some mv instructions were useful when first introduced to preserve a0 and
a1 before function calls. However the code has changed and they are now
redundant. Remove them.

Signed-off-by: Nam Cao <namcaov@gmail.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230725053835.138910-1-namcaov@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/head.S