projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ced658
)
PowerPC merge
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 May 2004 21:11:22 +0000
(21:11 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 23 May 2004 21:11:22 +0000
(21:11 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@858
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index c0b6a8f32f609c326cd2c3dc40caea721b2f5734..9a6d81a95f52f9e1a41540a8dea162d155e07646 100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-1789,8
+1789,9
@@
void cpu_register_physical_memory(target_phys_addr_t start_addr,
unsigned long addr, end_addr;
PhysPageDesc *p;
+ size = (size + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK;
end_addr = start_addr + size;
- for(addr = start_addr; addr
<
end_addr; addr += TARGET_PAGE_SIZE) {
+ for(addr = start_addr; addr
!=
end_addr; addr += TARGET_PAGE_SIZE) {
p = phys_page_find_alloc(addr >> TARGET_PAGE_BITS);
p->phys_offset = phys_offset;
if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM)