提交 4120b61d 编写于 作者: B bellard

test at least one invalid lock op code


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@570 c046a42c-6fe2-441c-8c8c-71466251a162
上级 7f957d28
......@@ -1379,6 +1379,11 @@ void test_exceptions(void)
/* now execute an invalid instruction */
asm volatile("ud2");
}
printf("lock nop exception:\n");
if (setjmp(jmp_env) == 0) {
/* now execute an invalid instruction */
asm volatile("lock nop");
}
printf("INT exception:\n");
if (setjmp(jmp_env) == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册