mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
kqemu API change - allow use of kqemu with 32 bit QEMU on a 64 bit host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4628 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
da94d26390
commit
da260249a4
6 changed files with 286 additions and 136 deletions
7
exec.c
7
exec.c
|
@ -2139,6 +2139,13 @@ void cpu_register_physical_memory(target_phys_addr_t start_addr,
|
|||
ram_addr_t orig_size = size;
|
||||
void *subpage;
|
||||
|
||||
#ifdef USE_KQEMU
|
||||
/* XXX: should not depend on cpu context */
|
||||
env = first_cpu;
|
||||
if (env->kqemu_enabled) {
|
||||
kqemu_set_phys_mem(start_addr, size, phys_offset);
|
||||
}
|
||||
#endif
|
||||
size = (size + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK;
|
||||
end_addr = start_addr + (target_phys_addr_t)size;
|
||||
for(addr = start_addr; addr != end_addr; addr += TARGET_PAGE_SIZE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue