mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
ppc/xive: introduce a XiveTCTX pointer under PowerPCCPU
which will be used by the machine only when the XIVE interrupt mode is in use. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
8fa1f4ef38
commit
129dbe6926
4 changed files with 15 additions and 8 deletions
|
@ -321,7 +321,7 @@ static void xive_tm_write(void *opaque, hwaddr offset,
|
|||
uint64_t value, unsigned size)
|
||||
{
|
||||
PowerPCCPU *cpu = POWERPC_CPU(current_cpu);
|
||||
XiveTCTX *tctx = XIVE_TCTX(cpu->intc);
|
||||
XiveTCTX *tctx = cpu->tctx;
|
||||
const XiveTmOp *xto;
|
||||
|
||||
/*
|
||||
|
@ -360,7 +360,7 @@ static void xive_tm_write(void *opaque, hwaddr offset,
|
|||
static uint64_t xive_tm_read(void *opaque, hwaddr offset, unsigned size)
|
||||
{
|
||||
PowerPCCPU *cpu = POWERPC_CPU(current_cpu);
|
||||
XiveTCTX *tctx = XIVE_TCTX(cpu->intc);
|
||||
XiveTCTX *tctx = cpu->tctx;
|
||||
const XiveTmOp *xto;
|
||||
|
||||
/*
|
||||
|
@ -1186,7 +1186,7 @@ static bool xive_presenter_match(XiveRouter *xrtr, uint8_t format,
|
|||
|
||||
CPU_FOREACH(cs) {
|
||||
PowerPCCPU *cpu = POWERPC_CPU(cs);
|
||||
XiveTCTX *tctx = XIVE_TCTX(cpu->intc);
|
||||
XiveTCTX *tctx = cpu->tctx;
|
||||
int ring;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue