diff options
author | Catalin Patulea <catalinp@google.com> | 2012-10-16 16:00:23 -0400 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2012-10-19 20:40:21 +0200 |
commit | f62cb1b6ddc2c82694abac23ab5eeddd85800074 (patch) | |
tree | b4cb4a6c960772e95394bd030ca4e8ecb2cf7da0 /tests/tcg/test-i386.c | |
parent | 7748b8cb1d100105753a80976d2d02ab107d8107 (diff) |
tests/tcg: fix build
This broke when the tests were moved from tests/ to tests/tcg/.
On x86_64 host/i386-linux-user non-kvm guest, test-i386 and test-mmap are broken, but at least they build.
To build/run the tests:
$ cd $BUILD_PATH/tests/tcg
$ SRC_PATH=path/to/qemu make <target>
Signed-off-by: Catalin Patulea <catalinp@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tests/tcg/test-i386.c')
-rw-r--r-- | tests/tcg/test-i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c index 8e64bbaf38..64d929e482 100644 --- a/tests/tcg/test-i386.c +++ b/tests/tcg/test-i386.c @@ -17,6 +17,7 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ #define _GNU_SOURCE +#include "compiler.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -1827,7 +1828,7 @@ void test_exceptions(void) printf("lock nop exception:\n"); if (setjmp(jmp_env) == 0) { /* now execute an invalid instruction */ - asm volatile("lock nop"); + asm volatile(".byte 0xf0, 0x90"); /* lock nop */ } printf("INT exception:\n"); |