target/xtensa: Fix build warning.

Change-Id: I9ee69807bec729480dd94da874fe1771d8f06078
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2023-09-12 12:59:17 -07:00
parent 8c1f1b77d3
commit fb26f4f89d
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ static int xtensa_write_dirty_registers(struct target *target)
xtensa_reg_val_t a3 = 0, woe;
unsigned int ms_idx = (xtensa->core_config->core_type == XT_NX) ?
xtensa->nx_reg_idx[XT_NX_REG_IDX_MS] : reg_list_size;
xtensa_reg_val_t ms;
xtensa_reg_val_t ms = 0;
bool restore_ms = false;
LOG_TARGET_DEBUG(target, "start");