]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tpm.c
tcg/sparc: Zero extend address argument to ld/st helpers
[mirror_qemu.git] / tpm.c
diff --git a/tpm.c b/tpm.c
index 0a3e3d503238b9121d12f7fa1eb9a2ce709bf50a..9a7c7114d388cf984e907e7b77db4f761440ee8f 100644 (file)
--- a/tpm.c
+++ b/tpm.c
@@ -11,7 +11,7 @@
  *
  * Based on net.c
  */
-#include "config-host.h"
+#include "qemu/osdep.h"
 
 #include "qapi/qmp/qerror.h"
 #include "sysemu/tpm_backend.h"
@@ -262,7 +262,7 @@ static TPMInfo *qmp_query_tpm_inst(TPMBackend *drv)
     case TPM_TYPE_PASSTHROUGH:
         res->options->type = TPM_TYPE_OPTIONS_KIND_PASSTHROUGH;
         tpo = g_new0(TPMPassthroughOptions, 1);
-        res->options->u.passthrough = tpo;
+        res->options->u.passthrough.data = tpo;
         if (drv->path) {
             tpo->path = g_strdup(drv->path);
             tpo->has_path = true;