forked from auracaster/openocd
target: Use 'bool' data type in mmu()
The variable is already used in some parts of the code as boolean value but have the wrong data type. Change-Id: I50ccbf84c6f33a3034de989789c6b17312458ea8 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8989 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
a66e6fb43f
commit
325e6d38b5
@@ -1556,7 +1556,7 @@ int xtensa_get_gdb_reg_list(struct target *target,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int xtensa_mmu_is_enabled(struct target *target, int *enabled)
|
||||
int xtensa_mmu_is_enabled(struct target *target, bool *enabled)
|
||||
{
|
||||
struct xtensa *xtensa = target_to_xtensa(target);
|
||||
*enabled = xtensa->core_config->mmu.itlb_entries_count > 0 ||
|
||||
|
||||
@@ -392,7 +392,7 @@ int xtensa_step(struct target *target, bool current, target_addr_t address,
|
||||
bool handle_breakpoints);
|
||||
int xtensa_do_step(struct target *target, bool current, target_addr_t address,
|
||||
bool handle_breakpoints);
|
||||
int xtensa_mmu_is_enabled(struct target *target, int *enabled);
|
||||
int xtensa_mmu_is_enabled(struct target *target, bool *enabled);
|
||||
int xtensa_read_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer);
|
||||
int xtensa_read_buffer(struct target *target, target_addr_t address, uint32_t count, uint8_t *buffer);
|
||||
int xtensa_write_memory(struct target *target,
|
||||
|
||||
Reference in New Issue
Block a user