summaryrefslogtreecommitdiff
path: root/qemu/tests
diff options
context:
space:
mode:
authorbellard <bellard>2004-01-19 20:29:34 +0000
committerbellard <bellard>2004-01-19 20:29:34 +0000
commit189289bc0eb0361c698c219f42dbef725677fc11 (patch)
treef4881b2a6a46959d45d8b0a2f4fb6635c999e30a /qemu/tests
parent7e59ed92ddb289b84793673e0c43b7b75b6b8428 (diff)
test at least one invalid lock op code
Diffstat (limited to 'qemu/tests')
-rw-r--r--qemu/tests/test-i386.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu/tests/test-i386.c b/qemu/tests/test-i386.c
index 086ff288..b0c2af85 100644
--- a/qemu/tests/test-i386.c
+++ b/qemu/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) {