target/i386: reimplement 0x0f 0x50-0x5f, add AVX
[qemu.git] / tests / qtest / fuzz-xlnx-dp-test.c
blobe8c483965f0e8125bd7daaf1ec1d2a55c9878dbd
1 /*
2 * QTest fuzzer-generated testcase for xlnx-dp display device
4 * Copyright (c) 2021 Qiang Liu <cyruscyliu@gmail.com>
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #include "qemu/osdep.h"
10 #include "libqtest.h"
13 * This used to trigger the out-of-bounds read in xlnx_dp_read
15 static void test_fuzz_xlnx_dp_0x3ac(void)
17 QTestState *s = qtest_init("-M xlnx-zcu102 ");
18 qtest_readl(s, 0xfd4a03ac);
19 qtest_quit(s);
22 int main(int argc, char **argv)
24 const char *arch = qtest_get_arch();
26 g_test_init(&argc, &argv, NULL);
28 if (strcmp(arch, "aarch64") == 0) {
29 qtest_add_func("fuzz/test_fuzz_xlnx_dp/3ac", test_fuzz_xlnx_dp_0x3ac);
32 return g_test_run();