[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU |
Date: |
Fri, 20 May 2011 21:10:47 +0200 |
Hey Alex,
Next breakage... :(
Am 10.05.2011 um 00:15 schrieb Alexander Graf:
Most of the code to support e500 style MMUs is already in place, but
we're missing on some of the special TLB0-TLB1 handling code and
slightly
different TLB modification.
This patch adds support for the FSL style MMU.
Signed-off-by: Alexander Graf <address@hidden>
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 2a7431c..dd2f93f 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -1699,6 +1926,77 @@ static inline void cpu_set_tls(CPUState *env,
target_ulong newtls)
#endif
}
+#if !defined(CONFIG_USER_ONLY)
+static inline int booke206_tlbe_id(CPUState *env, ppcemb_tlb_t *tlbe)
+{
+ ulong tlbel = (ulong)tlbe;
+ ulong tlbl = (ulong)env->tlb;
CC ppc-softmmu/arch_init.o
In file included from /Users/andreas/QEMU/qemu/qemu-common.h:130,
from /Users/andreas/QEMU/qemu/monitor.h:4,
from /Users/andreas/QEMU/qemu/arch_init.c:32:
/Users/andreas/QEMU/qemu/target-ppc/cpu.h: In function
‘booke206_tlbe_id’:
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: ‘ulong’
undeclared (first use in this function)
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: (Each
undeclared identifier is reported only once
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: for each
function it appears in.)
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: expected ‘;’
before ‘tlbel’
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1933: error: expected ‘;’
before ‘tlbl’
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1935: error: ‘tlbel’
undeclared (first use in this function)
/Users/andreas/QEMU/qemu/target-ppc/cpu.h:1935: error: ‘tlbl’
undeclared (first use in this function)
make[1]: *** [arch_init.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2
Did you mean target_ulong or unsigned long?
Andreas
- [Qemu-devel] [PATCH 0/7] PPC: Add FSL (e500) MMU emulation v6, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 1/7] PPC: Make MPC8544DS obey -cpu switch, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 6/7] PPC MPC7544DS: Use new TLB helper function, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 3/7] PPC: Add GS MSR definition, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 2/7] PPC: Make MPC8544DS emulation work w/o KVM, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 4/7] PPC: Add another 64 bits to instruction feature mask, Alexander Graf, 2011/05/09
- [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU, Alexander Graf, 2011/05/09
- Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU,
Andreas Färber <=