diff mbox series

[v2,09/10] target/ppc: Restrict ppc_cpu_tlb_fill to TCG

Message ID 20210621125115.67717-10-bruno.larsen@eldorado.org.br
State New
Headers show
Series [v2,01/10] target/ppc: Remove PowerPCCPUClass.handle_mmu_fault | expand

Commit Message

Bruno Piazera Larsen June 21, 2021, 12:51 p.m. UTC
From: Richard Henderson <richard.henderson@linaro.org>


This function is used by TCGCPUOps, and is thus TCG specific.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/ppc/mmu_helper.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.17.1

Comments

David Gibson June 24, 2021, 6:35 a.m. UTC | #1
On Mon, Jun 21, 2021 at 09:51:14AM -0300, Bruno Larsen (billionai) wrote:
> From: Richard Henderson <richard.henderson@linaro.org>

> 

> This function is used by TCGCPUOps, and is thus TCG specific.

> 

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Applied to ppc-for-6.1, thanks.

> ---

>  target/ppc/mmu_helper.c | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c

> index a0e4e027d3..ba1952c77d 100644

> --- a/target/ppc/mmu_helper.c

> +++ b/target/ppc/mmu_helper.c

> @@ -2948,6 +2948,7 @@ hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)

>      return -1;

>  }

>  

> +#ifdef CONFIG_TCG

>  bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size,

>                        MMUAccessType access_type, int mmu_idx,

>                        bool probe, uintptr_t retaddr)

> @@ -2968,3 +2969,4 @@ bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size,

>      raise_exception_err_ra(&cpu->env, cs->exception_index,

>                             cpu->env.error_code, retaddr);

>  }

> +#endif


-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
diff mbox series

Patch

diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c
index a0e4e027d3..ba1952c77d 100644
--- a/target/ppc/mmu_helper.c
+++ b/target/ppc/mmu_helper.c
@@ -2948,6 +2948,7 @@  hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
     return -1;
 }
 
+#ifdef CONFIG_TCG
 bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size,
                       MMUAccessType access_type, int mmu_idx,
                       bool probe, uintptr_t retaddr)
@@ -2968,3 +2969,4 @@  bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size,
     raise_exception_err_ra(&cpu->env, cs->exception_index,
                            cpu->env.error_code, retaddr);
 }
+#endif