mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
accel/tcg: Replace CPUState.env_ptr with cpu_env()
Reviewed-by: Anton Johansson <anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ad75a51e84
commit
b77af26e97
58 changed files with 152 additions and 155 deletions
|
@ -1125,7 +1125,7 @@ static void spapr_dt_hypervisor(SpaprMachineState *spapr, void *fdt)
|
|||
* Older KVM versions with older guest kernels were broken
|
||||
* with the magic page, don't allow the guest to map it.
|
||||
*/
|
||||
if (!kvmppc_get_hypercall(first_cpu->env_ptr, hypercall,
|
||||
if (!kvmppc_get_hypercall(cpu_env(first_cpu), hypercall,
|
||||
sizeof(hypercall))) {
|
||||
_FDT(fdt_setprop(fdt, hypervisor, "hcall-instructions",
|
||||
hypercall, sizeof(hypercall)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue