From: bellard Date: Mon, 19 Jan 2004 20:29:34 +0000 (+0000) Subject: test at least one invalid lock op code X-Git-Tag: release_0_6_0~436 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4120b61d000117bf016dead1443682c74838227f;p=thirdparty%2Fqemu.git test at least one invalid lock op code git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@570 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tests/test-i386.c b/tests/test-i386.c index 086ff288710..b0c2af8554b 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -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) {