mirror of https://github.com/xqemu/xqemu.git
Fix host and target longs confusions (continued).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3345 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
863cf0b72c
commit
3d17787055
|
@ -1958,14 +1958,17 @@ int main(int argc, char **argv)
|
||||||
if (loglevel) {
|
if (loglevel) {
|
||||||
page_dump(logfile);
|
page_dump(logfile);
|
||||||
|
|
||||||
fprintf(logfile, "start_brk 0x%08lx\n" , info->start_brk);
|
fprintf(logfile, "start_brk 0x" TARGET_FMT_lx "\n", info->start_brk);
|
||||||
fprintf(logfile, "end_code 0x%08lx\n" , info->end_code);
|
fprintf(logfile, "end_code 0x" TARGET_FMT_lx "\n", info->end_code);
|
||||||
fprintf(logfile, "start_code 0x%08lx\n" , info->start_code);
|
fprintf(logfile, "start_code 0x" TARGET_FMT_lx "\n",
|
||||||
fprintf(logfile, "start_data 0x%08lx\n" , info->start_data);
|
info->start_code);
|
||||||
fprintf(logfile, "end_data 0x%08lx\n" , info->end_data);
|
fprintf(logfile, "start_data 0x" TARGET_FMT_lx "\n",
|
||||||
fprintf(logfile, "start_stack 0x%08lx\n" , info->start_stack);
|
info->start_data);
|
||||||
fprintf(logfile, "brk 0x%08lx\n" , info->brk);
|
fprintf(logfile, "end_data 0x" TARGET_FMT_lx "\n", info->end_data);
|
||||||
fprintf(logfile, "entry 0x%08lx\n" , info->entry);
|
fprintf(logfile, "start_stack 0x" TARGET_FMT_lx "\n",
|
||||||
|
info->start_stack);
|
||||||
|
fprintf(logfile, "brk 0x" TARGET_FMT_lx "\n", info->brk);
|
||||||
|
fprintf(logfile, "entry 0x" TARGET_FMT_lx "\n", info->entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
target_set_brk(info->brk);
|
target_set_brk(info->brk);
|
||||||
|
|
|
@ -17,18 +17,18 @@
|
||||||
* task_struct fields in the kernel
|
* task_struct fields in the kernel
|
||||||
*/
|
*/
|
||||||
struct image_info {
|
struct image_info {
|
||||||
target_ulong load_addr;
|
target_ulong load_addr;
|
||||||
unsigned long start_code;
|
target_ulong start_code;
|
||||||
unsigned long end_code;
|
target_ulong end_code;
|
||||||
unsigned long start_data;
|
target_ulong start_data;
|
||||||
unsigned long end_data;
|
target_ulong end_data;
|
||||||
unsigned long start_brk;
|
target_ulong start_brk;
|
||||||
unsigned long brk;
|
target_ulong brk;
|
||||||
unsigned long start_mmap;
|
target_ulong start_mmap;
|
||||||
unsigned long mmap;
|
target_ulong mmap;
|
||||||
unsigned long rss;
|
target_ulong rss;
|
||||||
unsigned long start_stack;
|
target_ulong start_stack;
|
||||||
unsigned long entry;
|
target_ulong entry;
|
||||||
target_ulong code_offset;
|
target_ulong code_offset;
|
||||||
target_ulong data_offset;
|
target_ulong data_offset;
|
||||||
char **host_argv;
|
char **host_argv;
|
||||||
|
@ -105,7 +105,7 @@ extern const char *qemu_uname_release;
|
||||||
struct linux_binprm {
|
struct linux_binprm {
|
||||||
char buf[128];
|
char buf[128];
|
||||||
void *page[MAX_ARG_PAGES];
|
void *page[MAX_ARG_PAGES];
|
||||||
unsigned long p;
|
target_ulong p;
|
||||||
int fd;
|
int fd;
|
||||||
int e_uid, e_gid;
|
int e_uid, e_gid;
|
||||||
int argc, envc;
|
int argc, envc;
|
||||||
|
|
Loading…
Reference in New Issue