mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
test at least one invalid lock op code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@570 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7f957d280b
commit
4120b61d00
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue