[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte
From: |
Blue Swirl |
Subject: |
[Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte |
Date: |
Mon, 2 Mar 2009 20:58:26 +0200 |
On 3/2/09, Alexander Graf <address@hidden> wrote:
> In order to modify SLB entries on recent PPC64 machines, the slbmte
> instruction is used.
>
> This patch implements the slbmte instruction and makes the "bridge"
> mode code use the slb set functions, so we can move the SLB into
> the CPU struct later.
>
> This is required for Linux to run on PPC64.
>
> Signed-off-by: Alexander Graf <address@hidden>
> void ppc_store_sr (CPUPPCState *env, int srnum, target_ulong value)
> {
> LOG_MMU("%s: reg=%d " ADDRX " " ADDRX "\n",
> __func__, srnum, value, env->sr[srnum]);
> - if (env->sr[srnum] != value) {
> + if (env->mmu_model & POWERPC_MMU_64) {
> target_ulong helper_load_sr (target_ulong sr_num)
> {
> + if (env->mmu_model & POWERPC_MMU_64)
> + return ppc_load_sr(env, sr_num);
> return env->sr[sr_num];
> }
It would be faster to move the MMU model checks to translation time.
- [Qemu-devel] [PATCH 0/3] PPC64 Linux bringup patches, Alexander Graf, 2009/03/02
- [Qemu-devel] [PATCH 1/3] PPC: Circumvent overflow in mtcrf, Alexander Graf, 2009/03/02
- [Qemu-devel] [PATCH 2/3] PPC64: Implement slbmte, Alexander Graf, 2009/03/02
- [Qemu-devel] [PATCH 3/3] PPC64: Implement large pages, Alexander Graf, 2009/03/02
- [Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte,
Blue Swirl <=
- [Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte, Alexander Graf, 2009/03/02
- Re: [Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte, Paul Brook, 2009/03/02
- [Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte, Blue Swirl, 2009/03/02
- [Qemu-devel] Re: [PATCH 2/3] PPC64: Implement slbmte, Alexander Graf, 2009/03/02
[Qemu-devel] Re: [PATCH 1/3] PPC: Circumvent overflow in mtcrf, Blue Swirl, 2009/03/02
Re: [Qemu-devel] [PATCH 1/3] PPC: Circumvent overflow in mtcrf, Laurent Desnogues, 2009/03/02