[Skiboot] [PATCH 37/60] xive: eqgen isn't a boolean

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Dec 22 14:16:45 AEDT 2016


So don't treat it as such

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 hw/xive.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/xive.c b/hw/xive.c
index f307b79..1921e22 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2679,7 +2679,7 @@ static void xive_init_xics_emulation(struct xive_cpu_state *xs)
 
 	xs->eqptr = 0;
 	xs->eqmsk = (0x10000/4) - 1;
-	xs->eqgen = false;
+	xs->eqgen = 0;
 
 	x = xive_from_vc_blk(xs->eq_blk);
 	assert(x);
@@ -2779,7 +2779,7 @@ static uint32_t xive_read_eq(struct xive_cpu_state *xs, bool just_peek)
 	if (!just_peek) {
 		xs->eqptr = (xs->eqptr + 1) & xs->eqmsk;
 		if (xs->eqptr == 0)
-			xs->eqgen = !xs->eqgen;
+			xs->eqgen ^= 1;
 	}
 	return cur & 0x00ffffff;
 }
-- 
2.9.3



More information about the Skiboot mailing list