Revision 0cbad81f target-ppc/kvm.c
b/target-ppc/kvm.c | ||
---|---|---|
1603 | 1603 |
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc); |
1604 | 1604 |
uint32_t vmx = kvmppc_get_vmx(); |
1605 | 1605 |
uint32_t dfp = kvmppc_get_dfp(); |
1606 |
uint32_t dcache_size = kvmppc_read_int_cpu_dt("d-cache-size"); |
|
1607 |
uint32_t icache_size = kvmppc_read_int_cpu_dt("i-cache-size"); |
|
1606 | 1608 |
|
1607 | 1609 |
/* Now fix up the class with information we can query from the host */ |
1608 | 1610 |
|
... | ... | |
1615 | 1617 |
/* Only override when we know what the host supports */ |
1616 | 1618 |
alter_insns(&pcc->insns_flags2, PPC2_DFP, dfp); |
1617 | 1619 |
} |
1620 |
|
|
1621 |
if (dcache_size != -1) { |
|
1622 |
pcc->l1_dcache_size = dcache_size; |
|
1623 |
} |
|
1624 |
|
|
1625 |
if (icache_size != -1) { |
|
1626 |
pcc->l1_icache_size = icache_size; |
|
1627 |
} |
|
1618 | 1628 |
} |
1619 | 1629 |
|
1620 | 1630 |
int kvmppc_fixup_cpu(PowerPCCPU *cpu) |
Also available in: Unified diff