Skip to contentSkip to conversation

[4376] CRIS: More TCG conversion.

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

lore
Share & tools
lore
#0 lore raw

Revision: 4376

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4376
Author:   edgar_igl
Date:     2008-05-07 15:24:53 +0000 (Wed, 07 May 2008)

Log Message:
-----------
CRIS: More TCG conversion.
* Convert moves to/from support function regs (including TLB updates) to TCG.
* SCC no longer requires T0 to strictly be 0 or 1, relaxed to 0 or non-zero.
* Convert the the condition code evaluation to TCG.
* Convert rfe into a helper and TCG.
* Convert evaluate_bcc and setf to TCG.
* Convert clrf to TCG.
* Convert CRIS exception raising to TCG.
* Convert btst to TCG.

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

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

target-cris/helper.h +5 -1
@@ -1,11 +1,15 @@
 #define TCG_HELPER_PROTO
-void TCG_HELPER_PROTO helper_tlb_update(uint32_t T0);
+
+void TCG_HELPER_PROTO helper_raise_exception(uint32_t index);
 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_movl_sreg_reg (uint32_t sreg, uint32_t reg);
+void TCG_HELPER_PROTO helper_movl_reg_sreg (uint32_t reg, uint32_t sreg);
+
 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);

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

target-cris/mmu.c +1 -1
@@ -265,7 +265,7 @@
 }
 
 /* Give us the vaddr corresponding to the latest TLB update.  */
-target_ulong cris_mmu_tlb_latest_update(CPUState *env, uint32_t new_lo)
+target_ulong cris_mmu_tlb_latest_update(CPUState *env)
 {
 	uint32_t sel = env->sregs[SFR_RW_MM_TLB_SEL];
 	uint32_t vaddr;

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

target-cris/mmu.h +1 -1
@@ -11,7 +11,7 @@
 	int bf_vec;
 };
 
-target_ulong cris_mmu_tlb_latest_update(CPUState *env, uint32_t new_lo);
+target_ulong cris_mmu_tlb_latest_update(CPUState *env);
 int cris_mmu_translate(struct cris_mmu_result_t *res,
 		       CPUState *env, uint32_t vaddr,
 		       int rw, int mmu_idx);

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

target-cris/op_helper.c +106 -32

189 lines not on this page · raw message

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

target-cris/translate.c +219 -68

522 lines not on this page · raw message