Skip to contentSkip to conversation

[5895] target-ppc: convert SLB/TLB instructions to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Dec 6, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5895

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5895
Author:   aurel32
Date:     2008-12-06 21:46:17 +0000 (Sat, 06 Dec 2008)

Log Message:
-----------
target-ppc: convert SLB/TLB instructions to TCG

Modified Paths:
--------------
trunk/target-ppc/cpu.h
trunk/target-ppc/helper.c
trunk/target-ppc/helper.h
trunk/target-ppc/op.c
trunk/target-ppc/op_helper.c
trunk/target-ppc/op_helper.h
trunk/target-ppc/translate.c

Modified: trunk/target-ppc/cpu.h
===================================================================

target-ppc/cpu.h +1 -1
@@ -582,7 +582,7 @@
 #endif
     /* segment registers */
     target_ulong sdr1;
-    target_ulong sr[16];
+    target_ulong sr[32];
     /* BATs */
     int nb_BATs;
     target_ulong DBAT[2][8];

Modified: trunk/target-ppc/helper.c
===================================================================

target-ppc/helper.c +0 -7
@@ -2110,13 +2110,6 @@
     }
 }
 
-#if 0 // Unused
-target_ulong do_load_sr (CPUPPCState *env, int srnum)
-{
-    return env->sr[srnum];
-}
-#endif
-
 void do_store_sr (CPUPPCState *env, int srnum, target_ulong value)
 {
 #if defined (DEBUG_MMU)

Modified: trunk/target-ppc/helper.h
===================================================================

target-ppc/helper.h +22 -4
@@ -163,10 +163,28 @@
 DEF_HELPER_2(efdcmpeq, i32, i64, i64)
 
 #if !defined(CONFIG_USER_ONLY)
-DEF_HELPER_1(load_6xx_tlbd, void, tl)
-DEF_HELPER_1(load_6xx_tlbi, void, tl)
-DEF_HELPER_1(load_74xx_tlbd, void, tl)
-DEF_HELPER_1(load_74xx_tlbi, void, tl)
+DEF_HELPER_1(4xx_tlbre_hi, tl, tl)
+DEF_HELPER_1(4xx_tlbre_lo, tl, tl)
+DEF_HELPER_2(4xx_tlbwe_hi, void, tl, tl)
+DEF_HELPER_2(4xx_tlbwe_lo, void, tl, tl)
+DEF_HELPER_1(4xx_tlbsx, tl, tl)
+DEF_HELPER_2(440_tlbre, tl, i32, tl)
+DEF_HELPER_3(440_tlbwe, void, i32, tl, tl)
+DEF_HELPER_1(440_tlbsx, tl, tl)
+DEF_HELPER_1(6xx_tlbd, void, tl)
+DEF_HELPER_1(6xx_tlbi, void, tl)
+DEF_HELPER_1(74xx_tlbd, void, tl)
+DEF_HELPER_1(74xx_tlbi, void, tl)
+DEF_HELPER_0(tlbia, void)
+DEF_HELPER_1(tlbie, void, tl)
+#if defined(TARGET_PPC64)
+DEF_HELPER_1(load_slb, tl, tl)
+DEF_HELPER_2(store_slb, void, tl, tl)
+DEF_HELPER_0(slbia, void)
+DEF_HELPER_1(slbie, void, tl)
+#endif
+DEF_HELPER_1(load_sr, tl, tl);
+DEF_HELPER_2(store_sr, void, tl, tl);
 
 DEF_HELPER_1(602_mfrom, tl, tl)
 #endif

Modified: trunk/target-ppc/op.c
===================================================================

target-ppc/op.c +0 -150

174 lines not on this page · raw message

Modified: trunk/target-ppc/op_helper.c
===================================================================

target-ppc/op_helper.c +137 -74

394 lines not on this page · raw message

Modified: trunk/target-ppc/op_helper.h
===================================================================

target-ppc/op_helper.h +0 -14
@@ -34,20 +34,6 @@
 void do_store_hid0_601 (void);
 #endif
 
-/* PowerPC 440 specific helpers */
-#if !defined(CONFIG_USER_ONLY)
-void do_440_tlbre (int word);
-void do_440_tlbwe (int word);
-#endif
-
-/* PowerPC 4xx specific helpers */
-#if !defined(CONFIG_USER_ONLY)
-void do_4xx_tlbre_lo (void);
-void do_4xx_tlbre_hi (void);
-void do_4xx_tlbwe_lo (void);
-void do_4xx_tlbwe_hi (void);
-#endif
-
 /* PowerPC 403 specific helpers */
 #if !defined(CONFIG_USER_ONLY)
 void do_load_403_pb (int num);

Modified: trunk/target-ppc/translate.c
===================================================================

target-ppc/translate.c +112 -82

395 lines not on this page · raw message