Commit e82d8ade13e313a457ea2859470e1da56cc8bca9
1 parent
d2bfb39a
fixed bound memory reference
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1045 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
tests/test-i386.c
| ... | ... | @@ -1364,7 +1364,7 @@ void test_exceptions(void) |
| 1364 | 1364 | /* bound exception */ |
| 1365 | 1365 | tab[0] = 1; |
| 1366 | 1366 | tab[1] = 10; |
| 1367 | - asm volatile ("bound %0, %1" : : "r" (11), "m" (tab)); | |
| 1367 | + asm volatile ("bound %0, %1" : : "r" (11), "m" (tab[0])); | |
| 1368 | 1368 | } |
| 1369 | 1369 | |
| 1370 | 1370 | printf("segment exceptions:\n"); | ... | ... |