mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
aspeed/hace: Accumulative mode supported
While the HMAC mode is not modelled, the accumulative mode is.
Accumulative mode is enabled by setting one of the bits in the HMAC
engine command mode part of the register, so fix the unimplemented check
to only look at the upper of the two bits.
Fixes: 5cd7d8564a
("aspeed/hace: Support AST2600 HACE")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220627100816.125956-1-joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
6743af9b10
commit
0dbf6dc576
1 changed files with 3 additions and 3 deletions
|
@ -338,10 +338,10 @@ static void aspeed_hace_write(void *opaque, hwaddr addr, uint64_t data,
|
|||
int algo;
|
||||
data &= ahc->hash_mask;
|
||||
|
||||
if ((data & HASH_HMAC_MASK)) {
|
||||
if ((data & HASH_DIGEST_HMAC)) {
|
||||
qemu_log_mask(LOG_UNIMP,
|
||||
"%s: HMAC engine command mode %"PRIx64" not implemented\n",
|
||||
__func__, (data & HASH_HMAC_MASK) >> 8);
|
||||
"%s: HMAC mode not implemented\n",
|
||||
__func__);
|
||||
}
|
||||
if (data & BIT(1)) {
|
||||
qemu_log_mask(LOG_UNIMP,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue