Skip to content

Commit

Permalink
xive: eqgen isn't a boolean
Browse files Browse the repository at this point in the history
So don't treat it as such

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Jan 5, 2017
1 parent 7c991d0 commit 0bc9d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/xive.c
Original file line number Diff line number Diff line change
Expand Up @@ -2682,7 +2682,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);
Expand Down Expand Up @@ -2782,7 +2782,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;
}
Expand Down

0 comments on commit 0bc9d38

Please sign in to comment.