Message ID | 154772354004.1600.642128566895016029.malone@gac.canonical.com |
---|---|
State | Not Applicable |
Headers | show |
Series | [Bug,1812091] Re: ARMv8-M boots in wrong security mode | expand |
diff --git a/exec.c b/exec.c index 6e875f0640a..2f0f40b0be6 100644 --- a/exec.c +++ b/exec.c @@ -3881,12 +3881,10 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr, phys_addr += (addr & ~TARGET_PAGE_MASK); if (is_write) { address_space_write_rom(cpu->cpu_ases[asidx].as, phys_addr, - MEMTXATTRS_UNSPECIFIED, - buf, l); + attrs, buf, l); } else { address_space_rw(cpu->cpu_ases[asidx].as, phys_addr, - MEMTXATTRS_UNSPECIFIED, - buf, l, 0); + attrs, buf, l, 0); } len -= l; buf += l;