diff options
| author | bellard | 2003-07-11 16:49:58 +0200 |
|---|---|---|
| committer | bellard | 2003-07-11 16:49:58 +0200 |
| commit | ede28208d86096cd80699d8105f8ee2e909c4268 (patch) | |
| tree | 255366e0b4c23986d309613dc0c776a0102f9f16 /tests | |
| parent | fixed EIP exception bug in case of nop operations (kernel 2.5.74 copy_from_us... (diff) | |
| download | qemu-ede28208d86096cd80699d8105f8ee2e909c4268.tar.gz qemu-ede28208d86096cd80699d8105f8ee2e909c4268.tar.xz qemu-ede28208d86096cd80699d8105f8ee2e909c4268.zip | |
added nop test for exception
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@321 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-i386.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c index cb35f21257..30923238ab 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -1250,6 +1250,8 @@ void test_exceptions(void) printf("PF exception:\n"); if (setjmp(jmp_env) == 0) { val = 1; + /* we add a nop to test a weird PC retrieval case */ + asm volatile ("nop"); /* now store in an invalid address */ *(char *)0x1234 = 1; } |
