aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-04-09 17:38:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-05-01 10:45:07 +0000
commitfd06257351683ba24ebebd9793df3fd0fb59988e (patch)
tree702f85fd87c0a28510617080f74febc7482b5a34 /exec.c
parentcc5bea608df30263f8d20facfd55d8b6ce15053d (diff)
memory: move functions is_romd and section_addr to memory API
Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/exec.c b/exec.c
index 62d4140f12..0607c9b6aa 100644
--- a/exec.c
+++ b/exec.c
@@ -503,14 +503,6 @@ bool memory_region_is_unassigned(MemoryRegion *mr)
&& mr != &io_mem_watch;
}
-target_phys_addr_t memory_region_section_addr(MemoryRegionSection *section,
- target_phys_addr_t addr)
-{
- addr -= section->offset_within_address_space;
- addr += section->offset_within_region;
- return addr;
-}
-
#define mmap_lock() do { } while(0)
#define mmap_unlock() do { } while(0)
#endif