diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index 2802a572..8bc31e0b 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -5655,7 +5655,7 @@ static bool v7m_stack_write(ARMCPU *cpu, uint32_t addr, uint32_t value, target_ulong page_size; hwaddr physaddr; int prot; - ARMMMUFaultInfo fi; + ARMMMUFaultInfo fi = {0}; bool secure = mmu_idx & ARM_MMU_IDX_M_S; int exc; bool exc_secure; @@ -5713,12 +5713,12 @@ static bool v7m_stack_read(ARMCPU *cpu, uint32_t *dest, uint32_t addr, { CPUState *cs = CPU(cpu); CPUARMState *env = &cpu->env; - MemTxAttrs attrs = {}; + MemTxAttrs attrs = {0}; MemTxResult txres; target_ulong page_size; hwaddr physaddr; int prot; - ARMMMUFaultInfo fi; + ARMMMUFaultInfo fi = {0}; bool secure = mmu_idx & ARM_MMU_IDX_M_S; int exc; bool exc_secure;