s390x/tod: factor out TOD into separate device
commit8046f374a64b81fdf4f71f7a433bf4035d501521
authorDavid Hildenbrand <david@redhat.com>
Wed, 27 Jun 2018 13:44:04 +0000 (27 15:44 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 2 Jul 2018 08:37:38 +0000 (2 10:37 +0200)
tree8dd52a7f33c9acedd66a0a96a52d49d8d2aad16a
parent4ab6a1feac0a142045d3b7bdbb8182a99c0b8980
s390x/tod: factor out TOD into separate device

Let's treat this like a separate device. TCG will have to store the
actual state/time later on.

Include cpu-qom.h in kvm_s390x.h (due to S390CPU) to compile tod-kvm.c.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180627134410.4901-4-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/Makefile.objs
hw/s390x/s390-virtio-ccw.c
hw/s390x/tod-kvm.c [new file with mode: 0644]
hw/s390x/tod-qemu.c [new file with mode: 0644]
hw/s390x/tod.c [new file with mode: 0644]
include/hw/s390x/tod.h [new file with mode: 0644]
target/s390x/cpu.c
target/s390x/cpu.h
target/s390x/kvm_s390x.h