qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 10/21] exec.c: export last_ram_offset()


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 10/21] exec.c: export last_ram_offset()
Date: Thu, 29 Dec 2011 10:25:49 +0900

Signed-off-by: Isaku Yamahata <address@hidden>
---
 exec-obsolete.h |    1 +
 exec.c          |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/exec-obsolete.h b/exec-obsolete.h
index 34b9fc5..8f69f1c 100644
--- a/exec-obsolete.h
+++ b/exec-obsolete.h
@@ -25,6 +25,7 @@
 
 #ifndef CONFIG_USER_ONLY
 
+ram_addr_t qemu_last_ram_offset(void);
 ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, const char *name,
                                    ram_addr_t size, void *host,
                                    MemoryRegion *mr);
diff --git a/exec.c b/exec.c
index 51b8d15..c8c6692 100644
--- a/exec.c
+++ b/exec.c
@@ -2907,7 +2907,7 @@ static ram_addr_t find_ram_offset(ram_addr_t size)
     return offset;
 }
 
-static ram_addr_t last_ram_offset(void)
+ram_addr_t qemu_last_ram_offset(void)
 {
     RAMBlock *block;
     ram_addr_t last = 0;
@@ -2989,7 +2989,7 @@ ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, 
const char *name,
     QLIST_INSERT_HEAD(&ram_list.blocks, new_block, next);
 
     ram_list.phys_dirty = g_realloc(ram_list.phys_dirty,
-                                       last_ram_offset() >> TARGET_PAGE_BITS);
+                                    qemu_last_ram_offset() >> 
TARGET_PAGE_BITS);
     memset(ram_list.phys_dirty + (new_block->offset >> TARGET_PAGE_BITS),
            0xff, size >> TARGET_PAGE_BITS);
 
-- 
1.7.1.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]