atomics: emit an smp_read_barrier_depends() barrier only for Alpha and Thread Sanitizer
[qemu.git] / tests / spapr-phb-test.c
blobf53911d9f7d608fe910e5a979b70dae8e57076cb
1 /*
2 * QTest testcase for SPAPR PHB
4 * Authors:
5 * Alexey Kardashevskiy <aik@ozlabs.ru>
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
9 */
10 #include "qemu/osdep.h"
11 #include <glib.h>
13 #include "libqtest.h"
15 #define TYPE_SPAPR_PCI_HOST_BRIDGE "spapr-pci-host-bridge"
17 /* Tests only initialization so far. TODO: Replace with functional tests */
18 static void test_phb_device(void)
22 int main(int argc, char **argv)
24 int ret;
26 g_test_init(&argc, &argv, NULL);
27 qtest_add_func("/spapr-phb/device", test_phb_device);
29 qtest_start("-device " TYPE_SPAPR_PCI_HOST_BRIDGE ",index=100");
31 ret = g_test_run();
33 qtest_end();
35 return ret;