target/riscv: Coding style fixes in csr.c
Fix various places that violate QEMU coding style: - correct multi-line comment format - indent to opening parenthesis Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Message-ID: <20230228104035.1879882-7-bmeng@tinylab.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
e17e2c7cb9
commit
8c7feddddd
@ -1342,7 +1342,8 @@ static RISCVException write_misa(CPURISCVState *env, int csrno,
|
|||||||
|
|
||||||
/* 'E' excludes all other extensions */
|
/* 'E' excludes all other extensions */
|
||||||
if (val & RVE) {
|
if (val & RVE) {
|
||||||
/* when we support 'E' we can do "val = RVE;" however
|
/*
|
||||||
|
* when we support 'E' we can do "val = RVE;" however
|
||||||
* for now we just drop writes if 'E' is present.
|
* for now we just drop writes if 'E' is present.
|
||||||
*/
|
*/
|
||||||
return RISCV_EXCP_NONE;
|
return RISCV_EXCP_NONE;
|
||||||
@ -1361,7 +1362,8 @@ static RISCVException write_misa(CPURISCVState *env, int csrno,
|
|||||||
val &= ~RVD;
|
val &= ~RVD;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Suppress 'C' if next instruction is not aligned
|
/*
|
||||||
|
* Suppress 'C' if next instruction is not aligned
|
||||||
* TODO: this should check next_pc
|
* TODO: this should check next_pc
|
||||||
*/
|
*/
|
||||||
if ((val & RVC) && (GETPC() & ~3) != 0) {
|
if ((val & RVC) && (GETPC() & ~3) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user