diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-19 20:29:34 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-19 20:29:34 +0000 |
commit | 4120b61d000117bf016dead1443682c74838227f (patch) | |
tree | 3b46205790c9e610d23f5bc9222ebafde2988d46 /tests/test-i386.c | |
parent | 7f957d280b8054d5134b5807b13205b33868426b (diff) |
test at least one invalid lock op code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@570 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/test-i386.c')
-rw-r--r-- | tests/test-i386.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c index 086ff28871..b0c2af8554 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) { |