Commit 4120b61d000117bf016dead1443682c74838227f

Authored by bellard
1 parent 7f957d28

test at least one invalid lock op code


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@570 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 5 additions and 0 deletions
tests/test-i386.c
... ... @@ -1379,6 +1379,11 @@ void test_exceptions(void)
1379 1379 /* now execute an invalid instruction */
1380 1380 asm volatile("ud2");
1381 1381 }
  1382 + printf("lock nop exception:\n");
  1383 + if (setjmp(jmp_env) == 0) {
  1384 + /* now execute an invalid instruction */
  1385 + asm volatile("lock nop");
  1386 + }
1382 1387  
1383 1388 printf("INT exception:\n");
1384 1389 if (setjmp(jmp_env) == 0) {
... ...