From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRZpu-0002yX-0v for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:21:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRZps-0002wx-8Q for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:21:41 -0500 Received: from [199.232.76.173] (port=59296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRZpr-0002wh-UD for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:21:40 -0500 Received: from savannah.gnu.org ([199.232.41.3]:39547 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRZpr-00078I-Kb for qemu-devel@nongnu.org; Mon, 26 Jan 2009 17:21:39 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LRZpp-00054s-U1 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 22:21:38 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LRZpl-00054j-S1 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 22:21:36 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Mon, 26 Jan 2009 22:21:33 +0000 Subject: [Qemu-devel] [6463] CRIS: Init the feedback shiftreg used for randomizing TLB sets. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6463 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6463 Author: edgar_igl Date: 2009-01-26 22:21:30 +0000 (Mon, 26 Jan 2009) Log Message: ----------- CRIS: Init the feedback shiftreg used for randomizing TLB sets. Signed-off-by: Edgar E. Iglesias Modified Paths: -------------- trunk/target-cris/mmu.h trunk/target-cris/translate.c Modified: trunk/target-cris/mmu.h =================================================================== --- trunk/target-cris/mmu.h 2009-01-26 21:47:27 UTC (rev 6462) +++ trunk/target-cris/mmu.h 2009-01-26 22:21:30 UTC (rev 6463) @@ -10,6 +10,7 @@ int bf_vec; }; +void cris_mmu_init(CPUState *env); void cris_mmu_flush_pid(CPUState *env, uint32_t pid); int cris_mmu_translate(struct cris_mmu_result_t *res, CPUState *env, uint32_t vaddr, Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2009-01-26 21:47:27 UTC (rev 6462) +++ trunk/target-cris/translate.c 2009-01-26 22:21:30 UTC (rev 6463) @@ -36,6 +36,7 @@ #include "disas.h" #include "tcg-op.h" #include "helper.h" +#include "mmu.h" #include "crisv32-decode.h" #include "qemu-common.h" @@ -3471,6 +3472,7 @@ /* start in user mode with interrupts enabled. */ env->pregs[PR_CCS] |= U_FLAG | I_FLAG; #else + cris_mmu_init(env); env->pregs[PR_CCS] = 0; #endif }