Revision f62cb1b6 tests/tcg/test-i386.c
b/tests/tcg/test-i386.c | ||
---|---|---|
17 | 17 |
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
18 | 18 |
*/ |
19 | 19 |
#define _GNU_SOURCE |
20 |
#include "compiler.h" |
|
20 | 21 |
#include <stdlib.h> |
21 | 22 |
#include <stdio.h> |
22 | 23 |
#include <string.h> |
... | ... | |
1827 | 1828 |
printf("lock nop exception:\n"); |
1828 | 1829 |
if (setjmp(jmp_env) == 0) { |
1829 | 1830 |
/* now execute an invalid instruction */ |
1830 |
asm volatile("lock nop");
|
|
1831 |
asm volatile(".byte 0xf0, 0x90"); /* lock nop */
|
|
1831 | 1832 |
} |
1832 | 1833 |
|
1833 | 1834 |
printf("INT exception:\n"); |
Also available in: Unified diff