From nobody Mon Sep 16 19:15:22 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=eik.bme.hu Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1721131748496827.2617030473289; Tue, 16 Jul 2024 05:09:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTgyY-0005q9-8i; Tue, 16 Jul 2024 08:08:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTgyW-0005mt-7I; Tue, 16 Jul 2024 08:08:08 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTgyT-0003kf-Ja; Tue, 16 Jul 2024 08:08:07 -0400 Received: from zero.eik.bme.hu (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 8A59C4E6001; Tue, 16 Jul 2024 14:07:59 +0200 (CEST) Received: from zero.eik.bme.hu ([127.0.0.1]) by zero.eik.bme.hu (zero.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10028) with ESMTP id RNxDpwF5-Jqf; Tue, 16 Jul 2024 14:07:57 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 8DC364E6005; Tue, 16 Jul 2024 14:07:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at eik.bme.hu Message-Id: <485a90bca642c894d94c8dbcadac58448c0bfa71.1721131193.git.balaton@eik.bme.hu> In-Reply-To: References: From: BALATON Zoltan Subject: [PATCH 1/2] hw/ppc: Consolidate e500 initial mapping creation functions To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Nicholas Piggin , Daniel Henrique Barboza , Edgar E. Iglesias Date: Tue, 16 Jul 2024 14:07:57 +0200 (CEST) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1721131750552116600 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add booke206_set_tlb() utility function and use it to replace very similar create_initial_mapping functions in e500 machines. Signed-off-by: BALATON Zoltan Reviewed-by: Edgar E. Iglesias Tested-by: Edgar E. Iglesias --- hw/ppc/e500.c | 41 +++++++++++++++++++---------------------- hw/ppc/e500.h | 2 -- hw/ppc/ppce500_spin.c | 30 +++++++++--------------------- include/hw/ppc/ppc.h | 5 +++++ 4 files changed, 33 insertions(+), 45 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 3bd12b54ab..8682bc7838 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -721,11 +721,21 @@ static int ppce500_prep_device_tree(PPCE500MachineSta= te *machine, kernel_base, kernel_size, true); } =20 -hwaddr booke206_page_size_to_tlb(uint64_t size) +static hwaddr booke206_page_size_to_tlb(uint64_t size) { return 63 - clz64(size / KiB); } =20 +void booke206_set_tlb(ppcmas_tlb_t *tlb, target_ulong va, hwaddr pa, + hwaddr len) +{ + tlb->mas1 =3D booke206_page_size_to_tlb(len) << MAS1_TSIZE_SHIFT; + tlb->mas1 |=3D MAS1_VALID; + tlb->mas2 =3D va & TARGET_PAGE_MASK; + tlb->mas7_3 =3D pa & TARGET_PAGE_MASK; + tlb->mas7_3 |=3D MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS= 3_SX; +} + static int booke206_initial_map_tsize(CPUPPCState *env) { struct boot_info *bi =3D env->load_info; @@ -751,25 +761,6 @@ static uint64_t mmubooke_initial_mapsize(CPUPPCState *= env) return (1ULL << 10 << tsize); } =20 -/* Create -kernel TLB entries for BookE. */ -static void mmubooke_create_initial_mapping(CPUPPCState *env) -{ - ppcmas_tlb_t *tlb =3D booke206_get_tlbm(env, 1, 0, 0); - hwaddr size; - int ps; - - ps =3D booke206_initial_map_tsize(env); - size =3D (ps << MAS1_TSIZE_SHIFT); - tlb->mas1 =3D MAS1_VALID | size; - tlb->mas2 =3D 0; - tlb->mas7_3 =3D 0; - tlb->mas7_3 |=3D MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS= 3_SX; - -#ifdef CONFIG_KVM - env->tlb_dirty =3D true; -#endif -} - static void ppce500_cpu_reset_sec(void *opaque) { PowerPCCPU *cpu =3D opaque; @@ -786,6 +777,8 @@ static void ppce500_cpu_reset(void *opaque) CPUState *cs =3D CPU(cpu); CPUPPCState *env =3D &cpu->env; struct boot_info *bi =3D env->load_info; + uint64_t map_size =3D mmubooke_initial_mapsize(env); + ppcmas_tlb_t *tlb =3D booke206_get_tlbm(env, 1, 0, 0); =20 cpu_reset(cs); =20 @@ -796,11 +789,15 @@ static void ppce500_cpu_reset(void *opaque) env->gpr[4] =3D 0; env->gpr[5] =3D 0; env->gpr[6] =3D EPAPR_MAGIC; - env->gpr[7] =3D mmubooke_initial_mapsize(env); + env->gpr[7] =3D map_size; env->gpr[8] =3D 0; env->gpr[9] =3D 0; env->nip =3D bi->entry; - mmubooke_create_initial_mapping(env); + /* create initial mapping */ + booke206_set_tlb(tlb, 0, 0, map_size); +#ifdef CONFIG_KVM + env->tlb_dirty =3D true; +#endif } =20 static DeviceState *ppce500_init_mpic_qemu(PPCE500MachineState *pms, diff --git a/hw/ppc/e500.h b/hw/ppc/e500.h index 8c09ef92e4..01db102625 100644 --- a/hw/ppc/e500.h +++ b/hw/ppc/e500.h @@ -41,8 +41,6 @@ struct PPCE500MachineClass { =20 void ppce500_init(MachineState *machine); =20 -hwaddr booke206_page_size_to_tlb(uint64_t size); - #define TYPE_PPCE500_MACHINE "ppce500-base-machine" OBJECT_DECLARE_TYPE(PPCE500MachineState, PPCE500MachineClass, PPCE500_MACH= INE) =20 diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.c index dfbe759481..208d87569a 100644 --- a/hw/ppc/ppce500_spin.c +++ b/hw/ppc/ppce500_spin.c @@ -33,6 +33,7 @@ #include "hw/hw.h" #include "hw/sysbus.h" #include "sysemu/hw_accel.h" +#include "hw/ppc/ppc.h" #include "e500.h" #include "qom/object.h" =20 @@ -70,30 +71,12 @@ static void spin_reset(DeviceState *dev) } } =20 -static void mmubooke_create_initial_mapping(CPUPPCState *env, - target_ulong va, - hwaddr pa, - hwaddr len) -{ - ppcmas_tlb_t *tlb =3D booke206_get_tlbm(env, 1, 0, 1); - hwaddr size; - - size =3D (booke206_page_size_to_tlb(len) << MAS1_TSIZE_SHIFT); - tlb->mas1 =3D MAS1_VALID | size; - tlb->mas2 =3D (va & TARGET_PAGE_MASK) | MAS2_M; - tlb->mas7_3 =3D pa & TARGET_PAGE_MASK; - tlb->mas7_3 |=3D MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS= 3_SX; -#ifdef CONFIG_KVM - env->tlb_dirty =3D true; -#endif -} - static void spin_kick(CPUState *cs, run_on_cpu_data data) { CPUPPCState *env =3D cpu_env(cs); SpinInfo *curspin =3D data.host_ptr; - hwaddr map_size =3D 64 * MiB; - hwaddr map_start; + hwaddr map_start, map_size =3D 64 * MiB; + ppcmas_tlb_t *tlb =3D booke206_get_tlbm(env, 1, 0, 1); =20 cpu_synchronize_state(cs); stl_p(&curspin->pir, env->spr[SPR_BOOKE_PIR]); @@ -107,7 +90,12 @@ static void spin_kick(CPUState *cs, run_on_cpu_data dat= a) env->gpr[9] =3D 0; =20 map_start =3D ldq_p(&curspin->addr) & ~(map_size - 1); - mmubooke_create_initial_mapping(env, 0, map_start, map_size); + /* create initial mapping */ + booke206_set_tlb(tlb, 0, map_start, map_size); + tlb->mas2 |=3D MAS2_M; +#ifdef CONFIG_KVM + env->tlb_dirty =3D true; +#endif =20 cs->halted =3D 0; cs->exception_index =3D -1; diff --git a/include/hw/ppc/ppc.h b/include/hw/ppc/ppc.h index d5d119ea7f..070524b02e 100644 --- a/include/hw/ppc/ppc.h +++ b/include/hw/ppc/ppc.h @@ -116,6 +116,11 @@ enum { =20 #define PPC_SERIAL_MM_BAUDBASE 399193 =20 +#ifndef CONFIG_USER_ONLY +void booke206_set_tlb(ppcmas_tlb_t *tlb, target_ulong va, hwaddr pa, + hwaddr len); +#endif + /* ppc_booke.c */ void ppc_booke_timers_init(PowerPCCPU *cpu, uint32_t freq, uint32_t flags); #endif --=20 2.30.9 From nobody Mon Sep 16 19:15:22 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=eik.bme.hu Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1721131768964883.1153380152911; Tue, 16 Jul 2024 05:09:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTgyc-00067C-Ky; Tue, 16 Jul 2024 08:08:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTgya-0005yB-8t; Tue, 16 Jul 2024 08:08:12 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTgyT-0003kj-LZ; Tue, 16 Jul 2024 08:08:12 -0400 Received: from zero.eik.bme.hu (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 9400B4E601D; Tue, 16 Jul 2024 14:08:00 +0200 (CEST) Received: from zero.eik.bme.hu ([127.0.0.1]) by zero.eik.bme.hu (zero.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10028) with ESMTP id 19mYf-UXpyYo; Tue, 16 Jul 2024 14:07:58 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 9917D4E6013; Tue, 16 Jul 2024 14:07:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at eik.bme.hu Message-Id: In-Reply-To: References: From: BALATON Zoltan Subject: [PATCH 2/2] hw/ppc: Consolidate ppc440 initial mapping creation functions To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Nicholas Piggin , Daniel Henrique Barboza , Edgar E. Iglesias Date: Tue, 16 Jul 2024 14:07:58 +0200 (CEST) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1721131770283116600 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add a utility function and use it to replace very similar create_initial_mapping functions in 440 based machines. Signed-off-by: BALATON Zoltan Reviewed-by: Edgar E. Iglesias Tested-by: Edgar E. Iglesias --- hw/ppc/ppc440_bamboo.c | 28 +++----------------------- hw/ppc/ppc_booke.c | 10 ++++++++++ hw/ppc/sam460ex.c | 45 ++++++++++-------------------------------- hw/ppc/virtex_ml507.c | 28 +++----------------------- include/hw/ppc/ppc.h | 2 ++ 5 files changed, 28 insertions(+), 85 deletions(-) diff --git a/hw/ppc/ppc440_bamboo.c b/hw/ppc/ppc440_bamboo.c index 73f80cf706..ae4d6cd96b 100644 --- a/hw/ppc/ppc440_bamboo.c +++ b/hw/ppc/ppc440_bamboo.c @@ -110,29 +110,6 @@ static int bamboo_load_device_tree(MachineState *machi= ne, return 0; } =20 -/* Create reset TLB entries for BookE, spanning the 32bit addr space. */ -static void mmubooke_create_initial_mapping(CPUPPCState *env, - target_ulong va, - hwaddr pa) -{ - ppcemb_tlb_t *tlb =3D &env->tlb.tlbe[0]; - - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 1U << 31; /* up to 0x80000000 */ - tlb->EPN =3D va & TARGET_PAGE_MASK; - tlb->RPN =3D pa & TARGET_PAGE_MASK; - tlb->PID =3D 0; - - tlb =3D &env->tlb.tlbe[1]; - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 1U << 31; /* up to 0xffffffff */ - tlb->EPN =3D 0x80000000 & TARGET_PAGE_MASK; - tlb->RPN =3D 0x80000000 & TARGET_PAGE_MASK; - tlb->PID =3D 0; -} - static void main_cpu_reset(void *opaque) { PowerPCCPU *cpu =3D opaque; @@ -143,8 +120,9 @@ static void main_cpu_reset(void *opaque) env->gpr[3] =3D FDT_ADDR; env->nip =3D entry; =20 - /* Create a mapping for the kernel. */ - mmubooke_create_initial_mapping(env, 0, 0); + /* Create a mapping spanning the 32bit addr space. */ + booke_set_tlb(&env->tlb.tlbe[0], 0, 0, 1U << 31); + booke_set_tlb(&env->tlb.tlbe[1], 0x80000000, 0x80000000, 1U << 31); } =20 static void bamboo_init(MachineState *machine) diff --git a/hw/ppc/ppc_booke.c b/hw/ppc/ppc_booke.c index ca22da196a..c8849e66ff 100644 --- a/hw/ppc/ppc_booke.c +++ b/hw/ppc/ppc_booke.c @@ -31,6 +31,16 @@ #include "hw/loader.h" #include "kvm_ppc.h" =20 +void booke_set_tlb(ppcemb_tlb_t *tlb, target_ulong va, hwaddr pa, + target_ulong size) +{ + tlb->attr =3D 0; + tlb->prot =3D PAGE_RWX << 4 | PAGE_VALID; + tlb->size =3D size; + tlb->EPN =3D va & TARGET_PAGE_MASK; + tlb->RPN =3D pa & TARGET_PAGE_MASK; + tlb->PID =3D 0; +} =20 /* Timer Control Register */ =20 diff --git a/hw/ppc/sam460ex.c b/hw/ppc/sam460ex.c index 8dc75fb9f0..ea99a4c624 100644 --- a/hw/ppc/sam460ex.c +++ b/hw/ppc/sam460ex.c @@ -213,38 +213,6 @@ static int sam460ex_load_device_tree(MachineState *mac= hine, return fdt_size; } =20 -/* Create reset TLB entries for BookE, mapping only the flash memory. */ -static void mmubooke_create_initial_mapping_uboot(CPUPPCState *env) -{ - ppcemb_tlb_t *tlb =3D &env->tlb.tlbe[0]; - - /* on reset the flash is mapped by a shadow TLB, - * but since we don't implement them we need to use - * the same values U-Boot will use to avoid a fault. - */ - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 0x10000000; /* up to 0xffffffff */ - tlb->EPN =3D 0xf0000000 & TARGET_PAGE_MASK; - tlb->RPN =3D (0xf0000000 & TARGET_PAGE_MASK) | 0x4; - tlb->PID =3D 0; -} - -/* Create reset TLB entries for BookE, spanning the 32bit addr space. */ -static void mmubooke_create_initial_mapping(CPUPPCState *env, - target_ulong va, - hwaddr pa) -{ - ppcemb_tlb_t *tlb =3D &env->tlb.tlbe[0]; - - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 1 << 31; /* up to 0x80000000 */ - tlb->EPN =3D va & TARGET_PAGE_MASK; - tlb->RPN =3D pa & TARGET_PAGE_MASK; - tlb->PID =3D 0; -} - static void main_cpu_reset(void *opaque) { PowerPCCPU *cpu =3D opaque; @@ -253,20 +221,27 @@ static void main_cpu_reset(void *opaque) =20 cpu_reset(CPU(cpu)); =20 - /* either we have a kernel to boot or we jump to U-Boot */ + /* + * On reset the flash is mapped by a shadow TLB, but since we + * don't implement them we need to use the same values U-Boot + * will use to avoid a fault. + * either we have a kernel to boot or we jump to U-Boot + */ if (bi->entry !=3D UBOOT_ENTRY) { env->gpr[1] =3D (16 * MiB) - 8; env->gpr[3] =3D FDT_ADDR; env->nip =3D bi->entry; =20 /* Create a mapping for the kernel. */ - mmubooke_create_initial_mapping(env, 0, 0); + booke_set_tlb(&env->tlb.tlbe[0], 0, 0, 1 << 31); env->gpr[6] =3D tswap32(EPAPR_MAGIC); env->gpr[7] =3D (16 * MiB) - 8; /* bi->ima_size; */ =20 } else { env->nip =3D UBOOT_ENTRY; - mmubooke_create_initial_mapping_uboot(env); + /* Create a mapping for U-Boot. */ + booke_set_tlb(&env->tlb.tlbe[0], 0xf0000000, 0xf0000000, 0x1000000= 0); + env->tlb.tlbe[0].RPN |=3D 4; } } =20 diff --git a/hw/ppc/virtex_ml507.c b/hw/ppc/virtex_ml507.c index c49da1f46f..16ddb528fe 100644 --- a/hw/ppc/virtex_ml507.c +++ b/hw/ppc/virtex_ml507.c @@ -67,29 +67,6 @@ static struct boot_info void *vfdt; } boot_info; =20 -/* Create reset TLB entries for BookE, spanning the 32bit addr space. */ -static void mmubooke_create_initial_mapping(CPUPPCState *env, - target_ulong va, - hwaddr pa) -{ - ppcemb_tlb_t *tlb =3D &env->tlb.tlbe[0]; - - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 1U << 31; /* up to 0x80000000 */ - tlb->EPN =3D va & TARGET_PAGE_MASK; - tlb->RPN =3D pa & TARGET_PAGE_MASK; - tlb->PID =3D 0; - - tlb =3D &env->tlb.tlbe[1]; - tlb->attr =3D 0; - tlb->prot =3D PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4); - tlb->size =3D 1U << 31; /* up to 0xffffffff */ - tlb->EPN =3D 0x80000000 & TARGET_PAGE_MASK; - tlb->RPN =3D 0x80000000 & TARGET_PAGE_MASK; - tlb->PID =3D 0; -} - static PowerPCCPU *ppc440_init_xilinx(const char *cpu_type, uint32_t syscl= k) { PowerPCCPU *cpu; @@ -139,8 +116,9 @@ static void main_cpu_reset(void *opaque) env->gpr[3] =3D bi->fdt; env->nip =3D bi->bootstrap_pc; =20 - /* Create a mapping for the kernel. */ - mmubooke_create_initial_mapping(env, 0, 0); + /* Create a mapping spanning the 32bit addr space. */ + booke_set_tlb(&env->tlb.tlbe[0], 0, 0, 1U << 31); + booke_set_tlb(&env->tlb.tlbe[1], 0x80000000, 0x80000000, 1U << 31); env->gpr[6] =3D tswap32(EPAPR_MAGIC); env->gpr[7] =3D bi->ima_size; } diff --git a/include/hw/ppc/ppc.h b/include/hw/ppc/ppc.h index 070524b02e..8a14d623f8 100644 --- a/include/hw/ppc/ppc.h +++ b/include/hw/ppc/ppc.h @@ -119,6 +119,8 @@ enum { #ifndef CONFIG_USER_ONLY void booke206_set_tlb(ppcmas_tlb_t *tlb, target_ulong va, hwaddr pa, hwaddr len); +void booke_set_tlb(ppcemb_tlb_t *tlb, target_ulong va, hwaddr pa, + target_ulong size); #endif =20 /* ppc_booke.c */ --=20 2.30.9