commit | 579f12b31f20624b74a1f356ede2257eb3c5eea8 | [log] [tgz] |
---|---|---|
author | Nick Hu <nick.hu@sifive.com> | Mon Oct 18 11:50:05 2021 +0800 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Wed Oct 20 10:59:17 2021 +0800 |
tree | c704b0558d4ab6a32c95327865ebb7fa6b37208f | |
parent | de1d08907566857b598493433e5f92805bee422e [diff] |
riscv: Avoid io read/write cause wrong result io read/write may cause wrong result because they may read/write data from/to register instead of memory. Add 'volatile' to avoid it. Signed-off-by: Nick Hu <nick.hu@sifive.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>