mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/ppc: moved has_spr to cpu.h
Moved has_spr to cpu.h as ppc_has_spr and turned it into an inline function. Change spr verification in pnv.c and spapr.c to a version that can compile in a !TCG environment. Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br> Message-Id: <20210507164146.67086-1-lucas.araujo@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
45998ffcb4
commit
03282a3ab8
4 changed files with 12 additions and 12 deletions
|
@ -703,10 +703,10 @@ static void spapr_dt_cpu(CPUState *cs, void *fdt, int offset,
|
|||
_FDT((fdt_setprop_string(fdt, offset, "status", "okay")));
|
||||
_FDT((fdt_setprop(fdt, offset, "64-bit", NULL, 0)));
|
||||
|
||||
if (env->spr_cb[SPR_PURR].oea_read) {
|
||||
if (ppc_has_spr(cpu, SPR_PURR)) {
|
||||
_FDT((fdt_setprop_cell(fdt, offset, "ibm,purr", 1)));
|
||||
}
|
||||
if (env->spr_cb[SPR_SPURR].oea_read) {
|
||||
if (ppc_has_spr(cpu, SPR_PURR)) {
|
||||
_FDT((fdt_setprop_cell(fdt, offset, "ibm,spurr", 1)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue