]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/megasas-test.c
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / tests / megasas-test.c
index 33aa97042c448e1cb7e3c58d617899de459b5b6f..c3e4ab659554d42c4416eec62b4a02a899ab369f 100644 (file)
@@ -10,6 +10,7 @@
 #include "qemu/osdep.h"
 #include "libqtest.h"
 #include "qemu/bswap.h"
+#include "qemu/module.h"
 #include "libqos/qgraph.h"
 #include "libqos/pci.h"
 
@@ -66,7 +67,7 @@ static void megasas_pd_get_info_fuzz(void *obj, void *data, QGuestAllocator *all
     context[7] = cpu_to_le32(0);
 
     context_pa = guest_alloc(alloc, sizeof(context));
-    memwrite(context_pa, context, sizeof(context));
+    qtest_memwrite(dev->bus->qts, context_pa, context, sizeof(context));
     qpci_io_writel(dev, bar, 0x40, context_pa);
 }