target/s390x: simplify gs_allowed()
commitc50f65118b429e6847d5c11b1a20a560d61c34b7
authorDavid Hildenbrand <david@redhat.com>
Fri, 18 Aug 2017 11:43:39 +0000 (18 13:43 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 30 Aug 2017 16:23:25 +0000 (30 18:23 +0200)
tree1e7bff72d28c3faedc10045098ca062498708dae
parentad4ad5f5125be3de5613221e073d5ebb4dd7fb89
target/s390x: simplify gs_allowed()

No need for kvm_enabled() as this function is only called from KVM and
there is no reason why it shouldn't be allowed for tcg. It is simply not
available under tcg.

Also, there is no need to check for the machine type anymore. Just like
ri_enabled(), we can directly use the stored flag, which results in
"true" for the "none" machine.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170818114353.13455-5-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-virtio-ccw.c