Skip to content

Commit

Permalink
exec: remove obsolete comment
Browse files Browse the repository at this point in the history
See how we call memory_region_section_addr two lines below to
convert a physical address to a base address in the region.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed May 24, 2013
1 parent 9ce0e92 commit bbcfd29
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions exec.c
Expand Up @@ -639,12 +639,6 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,
iotlb |= phys_section_rom;
}
} else {
/* IO handlers are currently passed a physical address.
It would be nice to pass an offset from the base address
of that region. This would avoid having to special case RAM,
and avoid full address decoding in every device.
We can't use the high bits of pd for this because
IO_MEM_ROMD uses these as a ram address. */
iotlb = section - phys_sections;
iotlb += memory_region_section_addr(section, paddr);
}
Expand Down

0 comments on commit bbcfd29

Please sign in to comment.