Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
4f213879
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看板
提交
4f213879
编写于
8月 27, 2012
作者:
M
malc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "i8259: add -no-spurious-interrupt-hack option"
This reverts commit
f278d494
. Signed-off-by:
N
malc
<
av1474@comtv.ru
>
上级
b3167288
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
5 addition
and
44 deletion
+5
-44
cpu-exec.c
cpu-exec.c
+5
-9
hw/i8259.c
hw/i8259.c
+0
-18
qemu-options.hx
qemu-options.hx
+0
-12
sysemu.h
sysemu.h
+0
-1
vl.c
vl.c
+0
-4
未找到文件。
cpu-exec.c
浏览文件 @
4f213879
...
...
@@ -329,15 +329,11 @@ int cpu_exec(CPUArchState *env)
0
);
env
->
interrupt_request
&=
~
(
CPU_INTERRUPT_HARD
|
CPU_INTERRUPT_VIRQ
);
intno
=
cpu_get_pic_interrupt
(
env
);
if
(
intno
>=
0
)
{
qemu_log_mask
(
CPU_LOG_TB_IN_ASM
,
"Servicing hardware INT=0x%02x
\n
"
,
intno
);
do_interrupt_x86_hardirq
(
env
,
intno
,
1
);
/* ensure that no TB jump will be modified as
the program flow was changed */
next_tb
=
0
;
}
qemu_log_mask
(
CPU_LOG_TB_IN_ASM
,
"Servicing hardware INT=0x%02x
\n
"
,
intno
);
do_interrupt_x86_hardirq
(
env
,
intno
,
1
);
/* ensure that no TB jump will be modified as
the program flow was changed */
next_tb
=
0
;
#if !defined(CONFIG_USER_ONLY)
}
else
if
((
interrupt_request
&
CPU_INTERRUPT_VIRQ
)
&&
(
env
->
eflags
&
IF_MASK
)
&&
...
...
hw/i8259.c
浏览文件 @
4f213879
...
...
@@ -26,7 +26,6 @@
#include "isa.h"
#include "monitor.h"
#include "qemu-timer.h"
#include "sysemu.h"
#include "i8259_internal.h"
/* debug PIC */
...
...
@@ -194,20 +193,6 @@ int pic_read_irq(DeviceState *d)
pic_intack
(
slave_pic
,
irq2
);
}
else
{
/* spurious IRQ on slave controller */
if
(
no_spurious_interrupt_hack
)
{
/* Pretend it was delivered and acknowledged. If
* it was spurious due to slave_pic->imr, then
* as soon as the mask is cleared, the slave will
* re-trigger IRQ2 on the master. If it is spurious for
* some other reason, make sure we don't keep trying
* to half-process the same spurious interrupt over
* and over again.
*/
s
->
irr
&=
~
(
1
<<
irq
);
s
->
last_irr
&=
~
(
1
<<
irq
);
s
->
isr
&=
~
(
1
<<
irq
);
return
-
1
;
}
irq2
=
7
;
}
intno
=
slave_pic
->
irq_base
+
irq2
;
...
...
@@ -217,9 +202,6 @@ int pic_read_irq(DeviceState *d)
pic_intack
(
s
,
irq
);
}
else
{
/* spurious IRQ on host controller */
if
(
no_spurious_interrupt_hack
)
{
return
-
1
;
}
irq
=
7
;
intno
=
s
->
irq_base
+
irq
;
}
...
...
qemu-options.hx
浏览文件 @
4f213879
...
...
@@ -1189,18 +1189,6 @@ Windows 2000 is installed, you no longer need this option (this option
slows down the IDE transfers).
ETEXI
DEF("no-spurious-interrupt-hack", 0, QEMU_OPTION_no_spurious_interrupt_hack,
"-no-spurious-interrupt-hack disable delivery of spurious interrupts\n",
QEMU_ARCH_I386)
STEXI
@item -no-spurious-interrupt-hack
@findex -no-spurious-interrupt-hack
Use it as a workaround for operating systems that drive PICs in a way that
can generate spurious interrupts, but the OS doesn't handle spurious
interrupts gracefully. (e.g. late 80s/early 90s versions of ATT UNIX
and derivatives)
ETEXI
HXCOMM Deprecated by -rtc
DEF("rtc-td-hack", 0, QEMU_OPTION_rtc_td_hack, "", QEMU_ARCH_I386)
...
...
sysemu.h
浏览文件 @
4f213879
...
...
@@ -117,7 +117,6 @@ extern int graphic_depth;
extern
DisplayType
display_type
;
extern
const
char
*
keyboard_layout
;
extern
int
win2k_install_hack
;
extern
int
no_spurious_interrupt_hack
;
extern
int
alt_grab
;
extern
int
ctrl_grab
;
extern
int
usb_enabled
;
...
...
vl.c
浏览文件 @
4f213879
...
...
@@ -204,7 +204,6 @@ CharDriverState *serial_hds[MAX_SERIAL_PORTS];
CharDriverState
*
parallel_hds
[
MAX_PARALLEL_PORTS
];
CharDriverState
*
virtcon_hds
[
MAX_VIRTIO_CONSOLES
];
int
win2k_install_hack
=
0
;
int
no_spurious_interrupt_hack
=
0
;
int
usb_enabled
=
0
;
int
singlestep
=
0
;
int
smp_cpus
=
1
;
...
...
@@ -3047,9 +3046,6 @@ int main(int argc, char **argv, char **envp)
case
QEMU_OPTION_win2k_hack
:
win2k_install_hack
=
1
;
break
;
case
QEMU_OPTION_no_spurious_interrupt_hack
:
no_spurious_interrupt_hack
=
1
;
break
;
case
QEMU_OPTION_rtc_td_hack
:
{
static
GlobalProperty
slew_lost_ticks
[]
=
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录