qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 01/11] PPC64: Implement slbmte


From: Alexander Graf
Subject: [Qemu-devel] Re: [PATCH 01/11] PPC64: Implement slbmte
Date: Sat, 7 Mar 2009 13:10:01 +0100


On 07.03.2009, at 10:57, Blue Swirl wrote:

On 3/6/09, Alexander Graf <address@hidden> wrote:
In order to modify SLB entries on recent PPC64 machines, the slbmte
instruction is used.

 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) {
+        uint64_t rb = 0, rs = 0;

This part does not compile because POWERPC_MMU_64 is not defined, is
the patch sequence correct?

Eh - I guess it doesn't compile for ppc-softmmu (32 bit)? I used the patches with --target-list=ppc64-softmmu, so that's probably why. I'll go and check what I did wrong to break ppc32 compilation (using a G4 in ppc64 emulation works) :-).

Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]