mirror of https://github.com/xemu-project/xemu.git
tpm: CRB: set registers to 0 by default
Initialize all registers of the CRB device to 0. This clears a few flags upon a reset. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
be052a3b3d
commit
e1880ed80a
|
@ -208,6 +208,8 @@ static void tpm_crb_reset(void *dev)
|
|||
|
||||
tpm_backend_reset(s->tpmbe);
|
||||
|
||||
memset(s->regs, 0, sizeof(s->regs));
|
||||
|
||||
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
|
||||
tpmRegValidSts, 1);
|
||||
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
|
||||
|
|
Loading…
Reference in New Issue