From 9723295a720ca26fe31a1e374555d83bccc051f4 Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Fri, 14 Jun 2019 13:09:17 +0200 Subject: ppc: Introduce kvmppc_set_reg_tb_offset() helper Introduce a KVM helper and its stub instead of guarding the code with CONFIG_KVM. Signed-off-by: Greg Kurz Message-Id: <156051055736.224162.11641594431517798715.stgit@bahia.lan> Signed-off-by: David Gibson --- hw/ppc/ppc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hw/ppc') diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index 288196d..a9e508c 100644 --- a/hw/ppc/ppc.c +++ b/hw/ppc/ppc.c @@ -1034,10 +1034,7 @@ static void timebase_load(PPCTimebase *tb) CPU_FOREACH(cpu) { PowerPCCPU *pcpu = POWERPC_CPU(cpu); pcpu->env.tb_env->tb_offset = tb_off_adj; -#if defined(CONFIG_KVM) - kvm_set_one_reg(cpu, KVM_REG_PPC_TB_OFFSET, - &pcpu->env.tb_env->tb_offset); -#endif + kvmppc_set_reg_tb_offset(pcpu, pcpu->env.tb_env->tb_offset); } } -- cgit v1.1