Skip to contentSkip to conversation

[4299] CRIS updates:

Qemu-devel Edgar E. Iglesias 1 participant 1 message May 2, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4299

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4299
Author:   edgar_igl
Date:     2008-05-02 22:16:17 +0000 (Fri, 02 May 2008)

Log Message:
-----------
CRIS updates:
* Support both the I and D MMUs and improve the accuracy of the MMU model.
* Handle the automatic user/kernel stack pointer switching when leaving or entering user mode.
* Move the CCS evaluation into helper funcs.
* Make sure user-mode cannot change flags only writeable in kernel mode.
* More conversion of the translator into TCG.
* Handle exceptions while in a delayslot.

Modified Paths:
--------------
trunk/cpu-exec.c
trunk/target-cris/cpu.h
trunk/target-cris/helper.c
trunk/target-cris/helper.h
trunk/target-cris/mmu.c
trunk/target-cris/mmu.h
trunk/target-cris/op.c
trunk/target-cris/op_helper.c
trunk/target-cris/translate.c

Modified: trunk/cpu-exec.c
===================================================================

cpu-exec.c +1 -1
@@ -257,7 +257,7 @@
     cs_base = 0;
     pc = env->pc;
 #elif defined(TARGET_CRIS)
-    flags = 0;
+    flags = env->pregs[PR_CCS];
     cs_base = 0;
     pc = env->pc;
 #else

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

target-cris/cpu.h +66 -51

165 lines not on this page · raw message

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

target-cris/helper.c +43 -35

117 lines not on this page · raw message

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

target-cris/helper.h +12 -0
@@ -1,3 +1,15 @@
 #define TCG_HELPER_PROTO
 void TCG_HELPER_PROTO helper_tlb_update(uint32_t T0);
+void TCG_HELPER_PROTO helper_tlb_flush(void);
+void TCG_HELPER_PROTO helper_dump(uint32_t a0, uint32_t a1, uint32_t a2);
+void TCG_HELPER_PROTO helper_dummy(void);
+void TCG_HELPER_PROTO helper_rfe(void);
+void TCG_HELPER_PROTO helper_store(uint32_t a0);
 
+void TCG_HELPER_PROTO helper_evaluate_flags_muls(void);
+void TCG_HELPER_PROTO helper_evaluate_flags_mulu(void);
+void TCG_HELPER_PROTO helper_evaluate_flags_mcp(void);
+void TCG_HELPER_PROTO helper_evaluate_flags_alu_4(void);
+void TCG_HELPER_PROTO helper_evaluate_flags_move_4 (void);
+void TCG_HELPER_PROTO helper_evaluate_flags_move_2 (void);
+void TCG_HELPER_PROTO helper_evaluate_flags (void);

Modified: trunk/target-cris/mmu.c
===================================================================

target-cris/mmu.c +103 -55

248 lines not on this page · raw message

Modified: trunk/target-cris/mmu.h
===================================================================

target-cris/mmu.h +1 -0
@@ -7,6 +7,7 @@
 {
 	uint32_t phy;
 	uint32_t pfn;
+	int prot;
 	int bf_vec;
 };
 

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

target-cris/op.c +46 -351

441 lines not on this page · raw message

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

target-cris/op_helper.c +368 -1

390 lines not on this page · raw message

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

target-cris/translate.c +297 -144

1,034 lines not on this page · raw message