aboutsummaryrefslogtreecommitdiff
path: root/hw/xive.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-06-30 11:56:59 +1000
committerOliver O'Halloran <oohall@gmail.com>2020-06-30 11:57:01 +1000
commit86b617c7f74a9122e9572657a9ab9b4c6ba13c4c (patch)
tree41535a3a276cf90e9a69b892a9b7f074b50125fa /hw/xive.c
parent7b7df5057e7e66a8ec53ac08b0a88a49663234d0 (diff)
downloadskiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.zip
skiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.tar.gz
skiboot-86b617c7f74a9122e9572657a9ab9b4c6ba13c4c.tar.bz2
hw/xive: Use XIVE_VSD_SIZE more
I think Cedric forgot this patch at some point. Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r--hw/xive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xive.c b/hw/xive.c
index 24003c9..22fadf2 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -1672,7 +1672,7 @@ static bool xive_prealloc_tables(struct xive *x)
}
memset(x->eq_ind_base, 0, al);
xive_dbg(x, "EQi at %p size 0x%llx\n", x->eq_ind_base, al);
- x->eq_ind_count = XIVE_EQ_TABLE_SIZE / 8;
+ x->eq_ind_count = XIVE_EQ_TABLE_SIZE / XIVE_VSD_SIZE;
/* Indirect VP table. Limited to one top page. */
al = ALIGN_UP(XIVE_VP_TABLE_SIZE, 0x10000);
@@ -1686,7 +1686,7 @@ static bool xive_prealloc_tables(struct xive *x)
return false;
}
xive_dbg(x, "VPi at %p size 0x%llx\n", x->vp_ind_base, al);
- x->vp_ind_count = XIVE_VP_TABLE_SIZE / 8;
+ x->vp_ind_count = XIVE_VP_TABLE_SIZE / XIVE_VSD_SIZE;
memset(x->vp_ind_base, 0, al);
/* Populate/initialize VP/EQs indirect backing */