aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2018-03-28 16:53:10 -0400
committerStefan Berger <stefanb@linux.vnet.ibm.com>2018-03-29 17:41:02 -0400
commit3a3c8735027a20ddd51c8f322f78ede3f52f90f9 (patch)
treeca03759f52b348e929c875174afa93f517e066f0 /hw/tpm
parent043289bef4d9c0d277c45695c676a6cc9fca48a0 (diff)
downloadqemu-3a3c8735027a20ddd51c8f322f78ede3f52f90f9.zip
qemu-3a3c8735027a20ddd51c8f322f78ede3f52f90f9.tar.gz
qemu-3a3c8735027a20ddd51c8f322f78ede3f52f90f9.tar.bz2
tpm: CRB: set the Idle flag by default
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'hw/tpm')
-rw-r--r--hw/tpm/tpm_crb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c
index ef8b80e..e728b55 100644
--- a/hw/tpm/tpm_crb.c
+++ b/hw/tpm/tpm_crb.c
@@ -220,6 +220,8 @@ static void tpm_crb_reset(void *dev)
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
tpmRegValidSts, 1);
+ ARRAY_FIELD_DP32(s->regs, CRB_CTRL_STS,
+ tpmIdle, 1);
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
InterfaceType, CRB_INTF_TYPE_CRB_ACTIVE);
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,