qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6463] CRIS: Init the feedback shiftreg used for randomizin


From: Edgar E. Iglesias
Subject: [Qemu-devel] [6463] CRIS: Init the feedback shiftreg used for randomizing TLB sets.
Date: Mon, 26 Jan 2009 22:21:33 +0000

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 <address@hidden>

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
 }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]