target: convert 'unsigned' to 'unsigned int'
Conversion done with checkpatch --fix-inplace -types UNSPECIFIED_INT Ignore the cast as they could be better addressed. Fix only minor additional checkpatch issue (spacing and line length). Use Checkpatch-ignore below for the function pointers in the file 'armv7a_cache_l2x.h' that do not assign the identifier names to the function arguments. Most of these struct are unused and should be fixed or dropped. Checkpatch-ignore: FUNCTION_ARGUMENTS Change-Id: I8f27e68eb3502e431c1ba801b362358105f9f2dc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8480 Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de>
This commit is contained in:
@@ -898,7 +898,7 @@ static int cortex_m_debug_entry(struct target *target)
|
||||
arm->core_mode = ARM_MODE_HANDLER;
|
||||
arm->map = armv7m_msp_reg_map;
|
||||
} else {
|
||||
unsigned control = buf_get_u32(arm->core_cache
|
||||
unsigned int control = buf_get_u32(arm->core_cache
|
||||
->reg_list[ARMV7M_CONTROL].value, 0, 3);
|
||||
|
||||
/* is this thread privileged? */
|
||||
@@ -2142,7 +2142,7 @@ int cortex_m_add_watchpoint(struct target *target, struct watchpoint *watchpoint
|
||||
}
|
||||
|
||||
/* hardware allows address masks of up to 32K */
|
||||
unsigned mask;
|
||||
unsigned int mask;
|
||||
|
||||
for (mask = 0; mask < 16; mask++) {
|
||||
if ((1u << mask) == watchpoint->length)
|
||||
@@ -2378,7 +2378,7 @@ static int cortex_m_dwt_set_reg(struct reg *reg, uint8_t *buf)
|
||||
struct dwt_reg {
|
||||
uint32_t addr;
|
||||
const char *name;
|
||||
unsigned size;
|
||||
unsigned int size;
|
||||
};
|
||||
|
||||
static const struct dwt_reg dwt_base_regs[] = {
|
||||
@@ -2946,7 +2946,7 @@ COMMAND_HANDLER(handle_cortex_m_vector_catch_command)
|
||||
|
||||
static const struct {
|
||||
char name[10];
|
||||
unsigned mask;
|
||||
unsigned int mask;
|
||||
} vec_ids[] = {
|
||||
{ "hard_err", VC_HARDERR, },
|
||||
{ "int_err", VC_INTERR, },
|
||||
@@ -2972,7 +2972,7 @@ COMMAND_HANDLER(handle_cortex_m_vector_catch_command)
|
||||
return retval;
|
||||
|
||||
if (CMD_ARGC > 0) {
|
||||
unsigned catch = 0;
|
||||
unsigned int catch = 0;
|
||||
|
||||
if (CMD_ARGC == 1) {
|
||||
if (strcmp(CMD_ARGV[0], "all") == 0) {
|
||||
@@ -2984,7 +2984,7 @@ COMMAND_HANDLER(handle_cortex_m_vector_catch_command)
|
||||
goto write;
|
||||
}
|
||||
while (CMD_ARGC-- > 0) {
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
for (i = 0; i < ARRAY_SIZE(vec_ids); i++) {
|
||||
if (strcmp(CMD_ARGV[CMD_ARGC], vec_ids[i].name) != 0)
|
||||
continue;
|
||||
@@ -3017,7 +3017,7 @@ write:
|
||||
*/
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(vec_ids); i++) {
|
||||
for (unsigned int i = 0; i < ARRAY_SIZE(vec_ids); i++) {
|
||||
command_print(CMD, "%9s: %s", vec_ids[i].name,
|
||||
(demcr & vec_ids[i].mask) ? "catch" : "ignore");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user