diff options
author | Lukas Auer | 2018-11-22 11:26:28 +0100 |
---|---|---|
committer | Andes | 2018-11-26 13:57:32 +0800 |
commit | 31f9058994fcf29ff1ed0766c6c96f00e32702d6 (patch) | |
tree | 1c1e7f54e906684be5ffb570bedea526ae94afa9 /board/Marvell | |
parent | 8bfa231cc6e1df1848273ed423a105890fd8b902 (diff) |
riscv: do not blindly modify the mstatus CSR
The mstatus CSR includes WPRI (writes preserve values, reads ignore
values) fields and must therefore not be set to zero without preserving
these fields. It is not apparent why mstatus is set to zero here since
it is not required for U-Boot to run. Remove it.
This instruction and others encode zero as an immediate. RISC-V has the
zero register for this purpose. Replace the immediates with the zero
register.
Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'board/Marvell')
0 files changed, 0 insertions, 0 deletions