From 3edfdb57712876300eab7f570356aec11b4bddca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Sat, 7 Aug 2021 09:38:20 +0200 Subject: xive/p10: Fix mismatch errors when DEBUG=1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HW has some reserved fields which break the comparison when checking END cache updates. Signed-off-by: Cédric Le Goater Signed-off-by: Vasant Hegde --- hw/xive2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw') diff --git a/hw/xive2.c b/hw/xive2.c index c09dd55..d0094e9 100644 --- a/hw/xive2.c +++ b/hw/xive2.c @@ -1166,6 +1166,9 @@ static bool xive_check_endc_update(struct xive *x, uint32_t idx, struct xive_end assert(end_p); end2 = *end_p; + end2.w0 &= ~END_W0_RESERVED; + end2.w1 &= ~END_W1_RESERVED; + end2.w7 &= ~END_W7_F0_RESERVED; if (memcmp(end, &end2, sizeof(struct xive_end)) != 0) { xive_err(x, "END update mismatch idx %d\n", idx); xive_err(x, "want: %08x %08x %08x %08x\n", -- cgit v1.1