tpm: Move memory subregion function into realize function
commit9dfd24ed848228643293e37c36848b5ac520ab98
authorStefan Berger <stefanb@us.ibm.com>
Tue, 10 Mar 2015 10:34:01 +0000 (10 06:34 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 17:24:13 +0000 (11 18:24 +0100)
tree7461a3bfa790eae8fb1ca755d8c4d40845413ed9
parentfc079951b7a5eb799bd24d18e4098aa03a3c79dd
tpm: Move memory subregion function into realize function

Move the memory subregion function into the DeviceClass realize function
due to isa_address_space (now) crashing if called in the instance init
function.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
hw/tpm/tpm_tis.c