Commit ede28208d86096cd80699d8105f8ee2e909c4268
1 parent
7739f36e
added nop test for exception
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@321 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
tests/test-i386.c
... | ... | @@ -1250,6 +1250,8 @@ void test_exceptions(void) |
1250 | 1250 | printf("PF exception:\n"); |
1251 | 1251 | if (setjmp(jmp_env) == 0) { |
1252 | 1252 | val = 1; |
1253 | + /* we add a nop to test a weird PC retrieval case */ | |
1254 | + asm volatile ("nop"); | |
1253 | 1255 | /* now store in an invalid address */ |
1254 | 1256 | *(char *)0x1234 = 1; |
1255 | 1257 | } | ... | ... |