Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
13748cf4
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看板
提交
13748cf4
编写于
13年前
作者:
A
Anthony Liguori
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
上级
99cce9fa
7665385a
无相关合并请求
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
24 addition
and
52 deletion
+24
-52
Makefile.objs
Makefile.objs
+1
-0
Makefile.target
Makefile.target
+0
-1
audio/audio_pt_int.c
audio/audio_pt_int.c
+0
-2
audio/sdlaudio.c
audio/sdlaudio.c
+0
-1
block/raw-posix.c
block/raw-posix.c
+0
-2
bsd-user/syscall.c
bsd-user/syscall.c
+0
-1
darwin-user/signal.c
darwin-user/signal.c
+0
-3
exec.c
exec.c
+0
-1
linux-user/signal.c
linux-user/signal.c
+0
-1
net/slirp.c
net/slirp.c
+1
-1
net/tap.c
net/tap.c
+0
-1
posix-aio-compat.c
posix-aio-compat.c
+0
-1
qemu-char.c
qemu-char.c
+0
-1
qemu-common.h
qemu-common.h
+1
-0
qemu-progress.c
qemu-progress.c
+0
-1
savevm.c
savevm.c
+0
-1
target-i386/helper.c
target-i386/helper.c
+0
-1
target-i386/translate.c
target-i386/translate.c
+1
-1
target-m68k/translate.c
target-m68k/translate.c
+20
-23
target-ppc/helper.c
target-ppc/helper.c
+0
-1
target-sparc/helper.c
target-sparc/helper.c
+0
-1
ui/curses.c
ui/curses.c
+0
-1
ui/sdl.c
ui/sdl.c
+0
-4
usb-bsd.c
usb-bsd.c
+0
-1
usb-linux.c
usb-linux.c
+0
-1
未找到文件。
Makefile.objs
浏览文件 @
13748cf4
...
...
@@ -170,6 +170,7 @@ user-obj-y += cutils.o cache-utils.o
hw-obj-y
=
hw-obj-y
+=
vl.o loader.o
hw-obj-$(CONFIG_VIRTIO)
+=
virtio.o virtio-console.o
hw-obj-$(CONFIG_VIRTIO_PCI)
+=
virtio-pci.o
hw-obj-y
+=
fw_cfg.o
hw-obj-$(CONFIG_PCI)
+=
pci.o pci_bridge.o
hw-obj-$(CONFIG_PCI)
+=
msix.o msi.o
...
...
This diff is collapsed.
Click to expand it.
Makefile.target
浏览文件 @
13748cf4
...
...
@@ -190,7 +190,6 @@ obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
# need to fix this properly
obj-$(CONFIG_NO_PCI)
+=
pci-stub.o
obj-$(CONFIG_VIRTIO)
+=
virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
obj-$(CONFIG_VIRTIO_PCI)
+=
virtio-pci.o
obj-y
+=
vhost_net.o
obj-$(CONFIG_VHOST_NET)
+=
vhost.o
obj-$(CONFIG_REALLY_VIRTFS)
+=
9pfs/virtio-9p.o
...
...
This diff is collapsed.
Click to expand it.
audio/audio_pt_int.c
浏览文件 @
13748cf4
...
...
@@ -6,8 +6,6 @@
#include "audio_int.h"
#include "audio_pt_int.h"
#include <signal.h>
static
void
GCC_FMT_ATTR
(
3
,
4
)
logerr
(
struct
audio_pt
*
pt
,
int
err
,
const
char
*
fmt
,
...)
{
...
...
This diff is collapsed.
Click to expand it.
audio/sdlaudio.c
浏览文件 @
13748cf4
...
...
@@ -32,7 +32,6 @@
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
#include <pthread.h>
#endif
#include <signal.h>
#endif
#define AUDIO_CAP "sdl"
...
...
This diff is collapsed.
Click to expand it.
block/raw-posix.c
浏览文件 @
13748cf4
...
...
@@ -43,7 +43,6 @@
#ifdef __sun__
#define _POSIX_PTHREAD_SEMANTICS 1
#include <signal.h>
#include <sys/dkio.h>
#endif
#ifdef __linux__
...
...
@@ -53,7 +52,6 @@
#include <linux/fd.h>
#endif
#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <signal.h>
#include <sys/disk.h>
#include <sys/cdio.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
bsd-user/syscall.c
浏览文件 @
13748cf4
...
...
@@ -31,7 +31,6 @@
#include <sys/syscall.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <signal.h>
#include <utime.h>
#include "qemu.h"
...
...
This diff is collapsed.
Click to expand it.
darwin-user/signal.c
浏览文件 @
13748cf4
...
...
@@ -21,7 +21,6 @@
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <sys/ucontext.h>
...
...
@@ -32,8 +31,6 @@
#undef uc_link
#endif
#include <signal.h>
#include "qemu.h"
#include "qemu-common.h"
...
...
This diff is collapsed.
Click to expand it.
exec.c
浏览文件 @
13748cf4
...
...
@@ -36,7 +36,6 @@
#include "qemu-timer.h"
#if defined(CONFIG_USER_ONLY)
#include <qemu.h>
#include <signal.h>
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <sys/param.h>
#if __FreeBSD_version >= 700104
...
...
This diff is collapsed.
Click to expand it.
linux-user/signal.c
浏览文件 @
13748cf4
...
...
@@ -21,7 +21,6 @@
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <assert.h>
#include <sys/ucontext.h>
...
...
This diff is collapsed.
Click to expand it.
net/slirp.c
浏览文件 @
13748cf4
...
...
@@ -614,7 +614,7 @@ static int slirp_guestfwd(SlirpState *s, const char *config_str,
}
fwd
=
qemu_malloc
(
sizeof
(
struct
GuestFwd
));
snprintf
(
buf
,
sizeof
(
buf
),
"guestfwd.tcp
:
%d"
,
port
);
snprintf
(
buf
,
sizeof
(
buf
),
"guestfwd.tcp
.
%d"
,
port
);
fwd
->
hd
=
qemu_chr_open
(
buf
,
p
,
NULL
);
if
(
!
fwd
->
hd
)
{
error_report
(
"could not open guest forwarding device '%s'"
,
buf
);
...
...
This diff is collapsed.
Click to expand it.
net/tap.c
浏览文件 @
13748cf4
...
...
@@ -27,7 +27,6 @@
#include "config-host.h"
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/wait.h>
...
...
This diff is collapsed.
Click to expand it.
posix-aio-compat.c
浏览文件 @
13748cf4
...
...
@@ -17,7 +17,6 @@
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
...
...
This diff is collapsed.
Click to expand it.
qemu-char.c
浏览文件 @
13748cf4
...
...
@@ -35,7 +35,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
...
...
This diff is collapsed.
Click to expand it.
qemu-common.h
浏览文件 @
13748cf4
...
...
@@ -39,6 +39,7 @@ typedef struct Monitor Monitor;
#include <sys/stat.h>
#include <sys/time.h>
#include <assert.h>
#include <signal.h>
#ifdef _WIN32
#include "qemu-os-win32.h"
...
...
This diff is collapsed.
Click to expand it.
qemu-progress.c
浏览文件 @
13748cf4
...
...
@@ -26,7 +26,6 @@
#include "osdep.h"
#include "sysemu.h"
#include <stdio.h>
#include <signal.h>
struct
progress_state
{
float
current
;
...
...
This diff is collapsed.
Click to expand it.
savevm.c
浏览文件 @
13748cf4
...
...
@@ -23,7 +23,6 @@
*/
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <sys/time.h>
...
...
This diff is collapsed.
Click to expand it.
target-i386/helper.c
浏览文件 @
13748cf4
...
...
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include "cpu.h"
#include "exec-all.h"
...
...
This diff is collapsed.
Click to expand it.
target-i386/translate.c
浏览文件 @
13748cf4
...
...
@@ -7538,7 +7538,7 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
break
;
case
5
:
/* lfence */
case
6
:
/* mfence */
if
((
modrm
&
0xc7
)
!=
0xc0
||
!
(
s
->
cpuid_features
&
CPUID_SSE
))
if
((
modrm
&
0xc7
)
!=
0xc0
||
!
(
s
->
cpuid_features
&
CPUID_SSE
2
))
goto
illegal_op
;
break
;
case
7
:
/* sfence / clflush */
...
...
This diff is collapsed.
Click to expand it.
target-m68k/translate.c
浏览文件 @
13748cf4
...
...
@@ -171,9 +171,6 @@ typedef void (*disas_proc)(DisasContext *, uint16_t);
static void disas_##name (DisasContext *s, uint16_t insn)
#endif
/* FIXME: Remove this. */
#define gen_im32(val) tcg_const_i32(val)
/* Generate a load from the specified address. Narrow values are
sign extended to full register width. */
static
inline
TCGv
gen_load
(
DisasContext
*
s
,
int
opsize
,
TCGv
addr
,
int
sign
)
...
...
@@ -339,7 +336,7 @@ static TCGv gen_lea_indexed(DisasContext *s, int opsize, TCGv base)
if
((
ext
&
0x80
)
==
0
)
{
/* base not suppressed */
if
(
IS_NULL_QREG
(
base
))
{
base
=
gen_im
32
(
offset
+
bd
);
base
=
tcg_const_i
32
(
offset
+
bd
);
bd
=
0
;
}
if
(
!
IS_NULL_QREG
(
add
))
{
...
...
@@ -355,7 +352,7 @@ static TCGv gen_lea_indexed(DisasContext *s, int opsize, TCGv base)
add
=
tmp
;
}
}
else
{
add
=
gen_im
32
(
bd
);
add
=
tcg_const_i
32
(
bd
);
}
if
((
ext
&
3
)
!=
0
)
{
/* memory indirect */
...
...
@@ -536,15 +533,15 @@ static TCGv gen_lea(DisasContext *s, uint16_t insn, int opsize)
case
0
:
/* Absolute short. */
offset
=
ldsw_code
(
s
->
pc
);
s
->
pc
+=
2
;
return
gen_im
32
(
offset
);
return
tcg_const_i
32
(
offset
);
case
1
:
/* Absolute long. */
offset
=
read_im32
(
s
);
return
gen_im
32
(
offset
);
return
tcg_const_i
32
(
offset
);
case
2
:
/* pc displacement */
offset
=
s
->
pc
;
offset
+=
ldsw_code
(
s
->
pc
);
s
->
pc
+=
2
;
return
gen_im
32
(
offset
);
return
tcg_const_i
32
(
offset
);
case
3
:
/* pc index+displacement. */
return
gen_lea_indexed
(
s
,
opsize
,
NULL_QREG
);
case
4
:
/* Immediate. */
...
...
@@ -1209,16 +1206,16 @@ DISAS_INSN(arith_im)
break
;
case
2
:
/* subi */
tcg_gen_mov_i32
(
dest
,
src1
);
gen_helper_xflag_lt
(
QREG_CC_X
,
dest
,
gen_im
32
(
im
));
gen_helper_xflag_lt
(
QREG_CC_X
,
dest
,
tcg_const_i
32
(
im
));
tcg_gen_subi_i32
(
dest
,
dest
,
im
);
gen_update_cc_add
(
dest
,
gen_im
32
(
im
));
gen_update_cc_add
(
dest
,
tcg_const_i
32
(
im
));
s
->
cc_op
=
CC_OP_SUB
;
break
;
case
3
:
/* addi */
tcg_gen_mov_i32
(
dest
,
src1
);
tcg_gen_addi_i32
(
dest
,
dest
,
im
);
gen_update_cc_add
(
dest
,
gen_im
32
(
im
));
gen_helper_xflag_lt
(
QREG_CC_X
,
dest
,
gen_im
32
(
im
));
gen_update_cc_add
(
dest
,
tcg_const_i
32
(
im
));
gen_helper_xflag_lt
(
QREG_CC_X
,
dest
,
tcg_const_i
32
(
im
));
s
->
cc_op
=
CC_OP_ADD
;
break
;
case
5
:
/* eori */
...
...
@@ -1228,7 +1225,7 @@ DISAS_INSN(arith_im)
case
6
:
/* cmpi */
tcg_gen_mov_i32
(
dest
,
src1
);
tcg_gen_subi_i32
(
dest
,
dest
,
im
);
gen_update_cc_add
(
dest
,
gen_im
32
(
im
));
gen_update_cc_add
(
dest
,
tcg_const_i
32
(
im
));
s
->
cc_op
=
CC_OP_SUB
;
break
;
default:
...
...
@@ -1324,8 +1321,8 @@ DISAS_INSN(clr)
default:
abort
();
}
DEST_EA
(
insn
,
opsize
,
gen_im
32
(
0
),
NULL
);
gen_logic_cc
(
s
,
gen_im
32
(
0
));
DEST_EA
(
insn
,
opsize
,
tcg_const_i
32
(
0
),
NULL
);
gen_logic_cc
(
s
,
tcg_const_i
32
(
0
));
}
static
TCGv
gen_get_ccr
(
DisasContext
*
s
)
...
...
@@ -1589,7 +1586,7 @@ DISAS_INSN(jump)
}
if
((
insn
&
0x40
)
==
0
)
{
/* jsr */
gen_push
(
s
,
gen_im
32
(
s
->
pc
));
gen_push
(
s
,
tcg_const_i
32
(
s
->
pc
));
}
gen_jmp
(
s
,
tmp
);
}
...
...
@@ -1617,7 +1614,7 @@ DISAS_INSN(addsubq)
tcg_gen_addi_i32
(
dest
,
dest
,
val
);
}
}
else
{
src2
=
gen_im
32
(
val
);
src2
=
tcg_const_i
32
(
val
);
if
(
insn
&
0x0100
)
{
gen_helper_xflag_lt
(
QREG_CC_X
,
dest
,
src2
);
tcg_gen_subi_i32
(
dest
,
dest
,
val
);
...
...
@@ -1666,7 +1663,7 @@ DISAS_INSN(branch)
}
if
(
op
==
1
)
{
/* bsr */
gen_push
(
s
,
gen_im
32
(
s
->
pc
));
gen_push
(
s
,
tcg_const_i
32
(
s
->
pc
));
}
gen_flush_cc_op
(
s
);
if
(
op
>
1
)
{
...
...
@@ -1757,7 +1754,7 @@ DISAS_INSN(mov3q)
val
=
(
insn
>>
9
)
&
7
;
if
(
val
==
0
)
val
=
-
1
;
src
=
gen_im
32
(
val
);
src
=
tcg_const_i
32
(
val
);
gen_logic_cc
(
s
,
src
);
DEST_EA
(
insn
,
OS_LONG
,
src
,
NULL
);
}
...
...
@@ -1883,7 +1880,7 @@ DISAS_INSN(shift_im)
tmp
=
(
insn
>>
9
)
&
7
;
if
(
tmp
==
0
)
tmp
=
8
;
shift
=
gen_im
32
(
tmp
);
shift
=
tcg_const_i
32
(
tmp
);
/* No need to flush flags becuse we know we will set C flag. */
if
(
insn
&
0x100
)
{
gen_helper_shl_cc
(
reg
,
cpu_env
,
reg
,
shift
);
...
...
@@ -2191,7 +2188,7 @@ DISAS_INSN(fpu)
switch
((
ext
>>
10
)
&
7
)
{
case
4
:
/* FPCR */
/* Not implemented. Always return zero. */
tmp32
=
gen_im
32
(
0
);
tmp32
=
tcg_const_i
32
(
0
);
break
;
case
1
:
/* FPIAR */
case
2
:
/* FPSR */
...
...
@@ -2592,7 +2589,7 @@ DISAS_INSN(mac)
/* Skip the accumulate if the value is already saturated. */
l1 = gen_new_label();
tmp = tcg_temp_new();
gen_op_and32(tmp, QREG_MACSR,
gen_im
32(MACSR_PAV0 << acc));
gen_op_and32(tmp, QREG_MACSR,
tcg_const_i
32(MACSR_PAV0 << acc));
gen_op_jmp_nz32(tmp, l1);
}
#endif
...
...
@@ -2626,7 +2623,7 @@ DISAS_INSN(mac)
/* Skip the accumulate if the value is already saturated. */
l1 = gen_new_label();
tmp = tcg_temp_new();
gen_op_and32(tmp, QREG_MACSR,
gen_im
32(MACSR_PAV0 << acc));
gen_op_and32(tmp, QREG_MACSR,
tcg_const_i
32(MACSR_PAV0 << acc));
gen_op_jmp_nz32(tmp, l1);
}
#endif
...
...
This diff is collapsed.
Click to expand it.
target-ppc/helper.c
浏览文件 @
13748cf4
...
...
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include "cpu.h"
#include "exec-all.h"
...
...
This diff is collapsed.
Click to expand it.
target-sparc/helper.c
浏览文件 @
13748cf4
...
...
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <signal.h>
#include "cpu.h"
#include "exec-all.h"
...
...
This diff is collapsed.
Click to expand it.
ui/curses.c
浏览文件 @
13748cf4
...
...
@@ -24,7 +24,6 @@
#include <curses.h>
#ifndef _WIN32
#include <signal.h>
#include <sys/ioctl.h>
#include <termios.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
ui/sdl.c
浏览文件 @
13748cf4
...
...
@@ -28,10 +28,6 @@
#include <SDL.h>
#include <SDL_syswm.h>
#ifndef _WIN32
#include <signal.h>
#endif
#include "qemu-common.h"
#include "console.h"
#include "sysemu.h"
...
...
This diff is collapsed.
Click to expand it.
usb-bsd.c
浏览文件 @
13748cf4
...
...
@@ -39,7 +39,6 @@
#else
#include <bus/usb/usb.h>
#endif
#include <signal.h>
/* This value has maximum potential at 16.
* You should also set hw.usb.debug to gain
...
...
This diff is collapsed.
Click to expand it.
usb-linux.c
浏览文件 @
13748cf4
...
...
@@ -37,7 +37,6 @@
#include <dirent.h>
#include <sys/ioctl.h>
#include <signal.h>
#include <linux/usbdevice_fs.h>
#include <linux/version.h>
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部