Checkpoint: fix some code style issues
This commit is contained in:
parent
3bdb8b29a8
commit
761aaeba98
|
@ -2826,19 +2826,12 @@ static int get_max_sbaccess(struct target *target)
|
||||||
uint32_t sbaccess16 = get_field(sbcs, DMI_SBCS_SBACCESS16);
|
uint32_t sbaccess16 = get_field(sbcs, DMI_SBCS_SBACCESS16);
|
||||||
uint32_t sbaccess8 = get_field(sbcs, DMI_SBCS_SBACCESS8);
|
uint32_t sbaccess8 = get_field(sbcs, DMI_SBCS_SBACCESS8);
|
||||||
|
|
||||||
if(sbaccess128){
|
if (sbaccess128) return 4;
|
||||||
return 4;
|
else if (sbaccess64) return 3;
|
||||||
}else if(sbaccess64){
|
else if (sbaccess32) return 2;
|
||||||
return 3;
|
else if (sbaccess16) return 1;
|
||||||
}else if(sbaccess32){
|
else if (sbaccess8) return 0;
|
||||||
return 2;
|
else return ERROR_FAIL;
|
||||||
}else if(sbaccess16){
|
|
||||||
return 1;
|
|
||||||
}else if(sbaccess8){
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return ERROR_FAIL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int riscv013_test_sba_config_reg(struct target *target, target_addr_t illegal_address)
|
static int riscv013_test_sba_config_reg(struct target *target, target_addr_t illegal_address)
|
||||||
|
|
Loading…
Reference in New Issue