]> git.proxmox.com Git - qemu.git/commitdiff
s390: compile fixes
authorAlexander Graf <agraf@suse.de>
Wed, 17 Nov 2010 12:01:04 +0000 (13:01 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 25 Dec 2010 23:29:49 +0000 (00:29 +0100)
The s390 target doesn't compile out of the box anymore. This patch fixes all
the obvious glitches that got introduced in the last few weeks.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/s390-virtio-bus.h
hw/s390-virtio.c
target-s390x/kvm.c
target-s390x/translate.c

index 41558c9c67e233604516313a46ded145f1a0d7a8..669b610a14ec16caa578b47d3b07340c0e07432a 100644 (file)
@@ -17,6 +17,8 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "virtio-net.h"
+
 #define VIRTIO_DEV_OFFS_TYPE           0       /* 8 bits */
 #define VIRTIO_DEV_OFFS_NUM_VQ         1       /* 8 bits */
 #define VIRTIO_DEV_OFFS_FEATURE_LEN    2       /* 8 bits */
index e7aec14fae3aa9206a6457aa77cb3d76180f2b50..f29b624e41e757c6a68f3786340228cfefcb2d16 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "hw.h"
 #include "block.h"
+#include "blockdev.h"
 #include "sysemu.h"
 #include "net.h"
 #include "boards.h"
index 9bf6abb2138b805b221e4659200e5a19b4e6997a..adf4a9e1e5aea986297a24641f1b78059334126a 100644 (file)
@@ -119,7 +119,7 @@ int kvm_arch_put_registers(CPUState *env, int level)
 
 int kvm_arch_get_registers(CPUState *env)
 {
-    uint32_t ret;
+    int ret;
     struct kvm_regs regs;
     int i;
 
index 881d8c4acf910e640f49237e4e68d2766d2e459d..d33bfb1f310f60517f86f899f1f665c4a1942e98 100644 (file)
@@ -36,7 +36,7 @@ void cpu_dump_state(CPUState *env, FILE *f, fprintf_function cpu_fprintf,
         }
     }
     for (i = 0; i < 16; i++) {
-        cpu_fprintf(f, "F%02d=%016lx", i, env->fregs[i]);
+        cpu_fprintf(f, "F%02d=%016lx", i, (long)env->fregs[i].i);
         if ((i % 4) == 3) {
             cpu_fprintf(f, "\n");
         } else {