mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
cpu: Fix one compile error for PPC.
CPU data structure is refined, which causes one compile error for PPC. Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
This commit is contained in:
parent
e3f2686bdf
commit
18398cfde5
@ -354,15 +354,15 @@ ppcDataFree(virCPUDataPtr data)
|
|||||||
static virCPUDataPtr
|
static virCPUDataPtr
|
||||||
ppcNodeData(void)
|
ppcNodeData(void)
|
||||||
{
|
{
|
||||||
virCPUDataPtr data;
|
virCPUDataPtr cpuData;
|
||||||
|
|
||||||
if (VIR_ALLOC(data) < 0)
|
if (VIR_ALLOC(cpuData) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
asm("mfpvr %0"
|
asm("mfpvr %0"
|
||||||
: "=r" (data->ppc.pvr));
|
: "=r" (cpuData->data.ppc.pvr));
|
||||||
|
|
||||||
return data;
|
return cpuData;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user