Skip to content

Commit

Permalink
exec: Make cpu_memory_rw_debug use the CPUs AS
Browse files Browse the repository at this point in the history
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
  • Loading branch information
edgarigl committed Feb 11, 2014
1 parent 2a22165 commit 2e38847
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exec.c
Expand Up @@ -2720,11 +2720,11 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
if (l > len)
l = len;
phys_addr += (addr & ~TARGET_PAGE_MASK);
if (is_write)
cpu_physical_memory_write_rom(&address_space_memory,
phys_addr, buf, l);
else
cpu_physical_memory_rw(phys_addr, buf, l, is_write);
if (is_write) {
cpu_physical_memory_write_rom(cpu->as, phys_addr, buf, l);
} else {
address_space_rw(cpu->as, phys_addr, buf, l, 0);
}
len -= l;
buf += l;
addr += l;
Expand Down

0 comments on commit 2e38847

Please sign in to comment.