[Bug 2003] New: Instruction cache problem in gen5200 bsps

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Feb 1 06:46:33 UTC 2012


           Summary: Instruction cache problem in gen5200 bsps
           Product: RTEMS
           Version: 4.10
          Platform: powerpc
        OS/Version: RTEMS
            Status: NEW
          Severity: major
          Priority: P3
         Component: bsps
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: ktaylan at gmail.com

There is a function called "cpu_init" in gen5200 bsp. In that function there is
a code segment that enables instruction cache. However without settings BATs
for instruction cache and settings some bits in HID0 register, instruction
cache cannot be enabled. The only code that enables instruction cache in
current function is;

msr = ppc_machine_state_register();

msr |= MSR_IR;


But additionally the below code should be added and BATs for instruction cache
should be set. In the attachment there is a code for updated cpuinit.c file.
This is done for Phytec MPC5200B I/O CPU module (which is not defined in
current bsp list. I hope i will propose to add this bsp codes to upcoming


NOTE: Without enabling instruction cache performance drops 4-5 times.

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the bugs mailing list