hw/s390x: tod: make explicit checks for accelerators when initializing
authorCho, Yu-Chen <acho@suse.com>
Wed, 7 Jul 2021 10:53:13 +0000 (18:53 +0800)
committerCornelia Huck <cohuck@redhat.com>
Wed, 7 Jul 2021 12:01:54 +0000 (14:01 +0200)
commit4f91550a0962519e5c54330833486d7940417be0
treeb88d9eeb56dfe1a87fd25b23ac61870becd1c001
parent85f1b67d4bcbdc6a12c3d2416df1a6d599414ee5
hw/s390x: tod: make explicit checks for accelerators when initializing

replace general "else" with specific checks for each possible accelerator.

Handle qtest as a NOP, and error out for an unknown accelerator used in
combination with tod.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Cho, Yu-Chen <acho@suse.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210707105324.23400-4-acho@suse.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/tod.c