[PATCH RESEND] riscv: fix compitible with binutils 2.38

2022-06-24 Thread Coelacanthus
. This will cause compile error like this: Error: unrecognized opcode `csrr a5,0xc01' Error: unrecognized opcode `fence.i' This commit add code to detect new Zicsr and Zifencei extensions, and enable it when needed. Signed-off-by: Coelacanthus Cc: Rick Chen Cc: Leo --- arch/risc

[PATCH] riscv: fix compitible with binutils 2.38

2022-05-23 Thread Coelacanthus
. This will cause compile error like this: Error: unrecognized opcode `csrr a5,0xc01' Error: unrecognized opcode `fence.i' This commit add code to detect new Zicsr and Zifencei extensions, and enable it when needed. Signed-off-by: Coelacanthus Cc: Rick Chen Cc: Leo --- arch/risc