Signed-off-by: Pierrick Bouvier <[email protected]>
---
tests/tcg/meson.build | 1 +
tests/tcg/mips/meson.build | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+)
create mode 100644 tests/tcg/mips/meson.build
diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build
index 3fc2b361f20..40d623b52a4 100644
--- a/tests/tcg/meson.build
+++ b/tests/tcg/meson.build
@@ -142,6 +142,7 @@ subdir('hppa')
subdir('i386')
subdir('loongarch64')
subdir('m68k')
+subdir('mips')
image_targets = {}
exe_targets = []
diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build
new file mode 100644
index 00000000000..3c4f6ec482d
--- /dev/null
+++ b/tests/tcg/mips/meson.build
@@ -0,0 +1,25 @@
+tests = []
+
+tests += tcg_tests['multiarch-linux-user']['tests']
+
+tests += {
+ 'hello-mips.c': {
+ 'cflags': ['-mno-abicalls', '-fno-PIC', '-fno-stack-protector', '-mabi=32',
+ '-nostdlib']
+ }
+}
+
+if 'qemu-mips' in emulators
+ tcg_tests += {
+ 'mips-linux-user': {
+ 'cc': 'mips-linux-gnu-gcc',
+ 'cc_dockerfile': 'debian-all-test-cross',
+ 'cc_docker_host_arch': ['aarch64', 'x86_64'],
+ 'cc_feat_cflags': cc_feat_cflags,
+ 'folder': 'mips',
+ 'gdb_arch': 'mips',
+ 'qemu': emulators['qemu-mips'],
+ 'tests': tests,
+ }
+ }
+endif
--
2.47.3