Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
5bf13560
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5bf13560
编写于
12月 12, 2011
作者:
M
malc
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.qemu.org/qemu
上级
f7e80adf
daf767b1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
10 deletion
+8
-10
bsd-user/bsdload.c
bsd-user/bsdload.c
+1
-1
bsd-user/elfload.c
bsd-user/elfload.c
+2
-3
configure
configure
+1
-4
exec.c
exec.c
+4
-2
未找到文件。
bsd-user/bsdload.c
浏览文件 @
5bf13560
...
...
@@ -196,7 +196,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
/* Something went wrong, return the inode and free the argument pages*/
for
(
i
=
0
;
i
<
MAX_ARG_PAGES
;
i
++
)
{
free
(
bprm
.
page
[
i
]);
g_
free
(
bprm
.
page
[
i
]);
}
return
(
retval
);
}
bsd-user/elfload.c
浏览文件 @
5bf13560
...
...
@@ -641,8 +641,7 @@ static abi_ulong copy_elf_strings(int argc,char ** argv, void **page,
offset
=
p
%
TARGET_PAGE_SIZE
;
pag
=
(
char
*
)
page
[
p
/
TARGET_PAGE_SIZE
];
if
(
!
pag
)
{
pag
=
(
char
*
)
malloc
(
TARGET_PAGE_SIZE
);
memset
(
pag
,
0
,
TARGET_PAGE_SIZE
);
pag
=
g_try_malloc0
(
TARGET_PAGE_SIZE
);
page
[
p
/
TARGET_PAGE_SIZE
]
=
pag
;
if
(
!
pag
)
return
0
;
...
...
@@ -696,7 +695,7 @@ static abi_ulong setup_arg_pages(abi_ulong p, struct linux_binprm *bprm,
info
->
rss
++
;
/* FIXME - check return value of memcpy_to_target() for failure */
memcpy_to_target
(
stack_base
,
bprm
->
page
[
i
],
TARGET_PAGE_SIZE
);
free
(
bprm
->
page
[
i
]);
g_
free
(
bprm
->
page
[
i
]);
}
stack_base
+=
TARGET_PAGE_SIZE
;
}
...
...
configure
浏览文件 @
5bf13560
...
...
@@ -1111,7 +1111,7 @@ fi
if
test
"
$pie
"
=
""
;
then
case
"
$cpu
-
$targetos
"
in
i386-Linux|x86_64-Linux
)
i386-Linux|x86_64-Linux
|i386-OpenBSD|x86_64-OpenBSD
)
;;
*
)
pie
=
"no"
...
...
@@ -1523,9 +1523,6 @@ EOF
if
compile_prog
"
$sdl_cflags
"
"
$sdl_libs
"
;
then
sdl_libs
=
"
$sdl_libs
-lX11"
fi
if
test
"
$mingw32
"
=
"yes"
;
then
sdl_libs
=
"
`
echo
$sdl_libs
|
sed
s/-mwindows//g
`
-mconsole"
fi
libs_softmmu
=
"
$sdl_libs
$libs_softmmu
"
fi
...
...
exec.c
浏览文件 @
5bf13560
...
...
@@ -1603,8 +1603,10 @@ void cpu_set_log(int log_flags)
static
char
logfile_buf
[
4096
];
setvbuf
(
logfile
,
logfile_buf
,
_IOLBF
,
sizeof
(
logfile_buf
));
}
#elif !defined(_WIN32)
/* Win32 doesn't support line-buffering and requires size >= 2 */
#elif defined(_WIN32)
/* Win32 doesn't support line-buffering, so use unbuffered output. */
setvbuf
(
logfile
,
NULL
,
_IONBF
,
0
);
#else
setvbuf
(
logfile
,
NULL
,
_IOLBF
,
0
);
#endif
log_append
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录