[6371] Fix user emulator breakage, based on patch by Riku Voipio
Revision: 6371
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6371 Author: blueswir1 Date: 2009-01-20 16:57:34 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
Fix user emulator breakage, based on patch by Riku Voipio
Modified Paths:
--------------
trunk/bsd-user/main.c
trunk/linux-user/main.c
Modified: trunk/bsd-user/main.c
===================================================================
bsd-user/main.c +14 -12
@@ -533,19 +533,21 @@free (target_environ); -log_page_dump (); +if (qemu_log_enabled ()) { +log_page_dump (); -qemu_log ("start_brk 0x" TARGET_ABI_FMT_lx"\n" , info->start_brk); -qemu_log ("end_code 0x" TARGET_ABI_FMT_lx"\n" , info->end_code); -qemu_log ("start_code 0x" TARGET_ABI_FMT_lx"\n" , - info->start_code); -qemu_log ("start_data 0x" TARGET_ABI_FMT_lx"\n" , - info->start_data); -qemu_log ("end_data 0x" TARGET_ABI_FMT_lx"\n" , info->end_data); -qemu_log ("start_stack 0x" TARGET_ABI_FMT_lx"\n" , - info->start_stack); -qemu_log ("brk 0x" TARGET_ABI_FMT_lx"\n" , info->brk); -qemu_log ("entry 0x" TARGET_ABI_FMT_lx"\n" , info->entry); +qemu_log ("start_brk 0x" TARGET_ABI_FMT_lx"\n" , info->start_brk); +qemu_log ("end_code 0x" TARGET_ABI_FMT_lx"\n" , info->end_code); +qemu_log ("start_code 0x" TARGET_ABI_FMT_lx"\n" , + info->start_code); +qemu_log ("start_data 0x" TARGET_ABI_FMT_lx"\n" , + info->start_data); +qemu_log ("end_data 0x" TARGET_ABI_FMT_lx"\n" , info->end_data); +qemu_log ("start_stack 0x" TARGET_ABI_FMT_lx"\n" , + info->start_stack); +qemu_log ("brk 0x" TARGET_ABI_FMT_lx"\n" , info->brk); +qemu_log ("entry 0x" TARGET_ABI_FMT_lx"\n" , info->entry); + }target_set_brk (info->brk);syscall_init ();
Modified: trunk/linux-user/main.c
===================================================================
linux-user/main.c +14 -12
@@ -2394,19 +2394,21 @@free (target_environ); -log_page_dump (); +if (qemu_log_enabled ()) { +log_page_dump (); -qemu_log ("start_brk 0x" TARGET_ABI_FMT_lx"\n" , info->start_brk); -qemu_log ("end_code 0x" TARGET_ABI_FMT_lx"\n" , info->end_code); -qemu_log ("start_code 0x" TARGET_ABI_FMT_lx"\n" , - info->start_code); -qemu_log ("start_data 0x" TARGET_ABI_FMT_lx"\n" , - info->start_data); -qemu_log ("end_data 0x" TARGET_ABI_FMT_lx"\n" , info->end_data); -qemu_log ("start_stack 0x" TARGET_ABI_FMT_lx"\n" , - info->start_stack); -qemu_log ("brk 0x" TARGET_ABI_FMT_lx"\n" , info->brk); -qemu_log ("entry 0x" TARGET_ABI_FMT_lx"\n" , info->entry); +qemu_log ("start_brk 0x" TARGET_ABI_FMT_lx"\n" , info->start_brk); +qemu_log ("end_code 0x" TARGET_ABI_FMT_lx"\n" , info->end_code); +qemu_log ("start_code 0x" TARGET_ABI_FMT_lx"\n" , + info->start_code); +qemu_log ("start_data 0x" TARGET_ABI_FMT_lx"\n" , + info->start_data); +qemu_log ("end_data 0x" TARGET_ABI_FMT_lx"\n" , info->end_data); +qemu_log ("start_stack 0x" TARGET_ABI_FMT_lx"\n" , + info->start_stack); +qemu_log ("brk 0x" TARGET_ABI_FMT_lx"\n" , info->brk); +qemu_log ("entry 0x" TARGET_ABI_FMT_lx"\n" , info->entry); + }target_set_brk (info->brk);syscall_init ();