> > Debugging of e500 and e500v1 processer requires MSR[DE] bit to be set always. > Where MSR = Machine State register > > Make sure of MSR[DE] bit is set uniformaly across the different execution > address space i.e. AS0 and AS1.
Hi We are trying to bring up our custom P2010 RDB based board. boot is NOR based and we cannot get past the rfi below. lis r6,MSR_IS|MSR_DS@h ori r6,r6,MSR_IS|MSR_DS@l lis r7,switch_as@h ori r7,r7,switch_as@l mtspr SPRN_SRR0,r7 mtspr SPRN_SRR1,r6 rfi switch_as: We end up with a TLB exception no matter what we do, even after applying this patch. Using a Abatron BDI3000 emluator Any pointers as what to look for would be greatly appreciated. Have anyone on the list managed to get past this rfi instruction using BDI3000? What emulator config did you use? Jocke > > Signed-off-by: Radu Lazarescu <radu.lazare...@freescale.com> > Signed-off-by: Catalin Udma <catalin.u...@freescale.com> > Signed-off-by: Marius Grigoras <marius.grigo...@freescale.com> > Signed-off-by: Prabhakar Kushwaha <prabha...@freescale.com> > --- > Based upon git://git.denx.de/u-boot.git branch master > > Changes for v2: > - Avoid MSR_DE negation in arch_preboot > - Made MSR_DE set code independent of any #define > > No change, Resending again > > Tested on > - SoC having E500 Family processor (P1010RDB, BSC9131RDB) > - SoC having E500MC Family processor (P4080DS, P3041DS) > > arch/powerpc/cpu/mpc85xx/cpu_init.c | 2 +- > arch/powerpc/cpu/mpc85xx/start.S | 7 +++++-- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c > b/arch/powerpc/cpu/mpc85xx/cpu_init.c > index 2e4a06c..3bcbffa 100644 > --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c > +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c > @@ -532,7 +532,7 @@ void arch_preboot_os(void) > * disabled by the time we get called. > */ > msr = mfmsr(); > - msr &= ~(MSR_ME|MSR_CE|MSR_DE); > + msr &= ~(MSR_ME|MSR_CE); > mtmsr(msr); > > setup_ivors(); > diff --git a/arch/powerpc/cpu/mpc85xx/start.S > b/arch/powerpc/cpu/mpc85xx/start.S > index 7bfa2d5..597151b 100644 > --- a/arch/powerpc/cpu/mpc85xx/start.S > +++ b/arch/powerpc/cpu/mpc85xx/start.S > @@ -82,6 +82,9 @@ > .globl _start_e500 > > _start_e500: > +/* Enable debug exception */ > + li r1,MSR_DE > + mtmsr r1 > > #if defined(CONFIG_SECURE_BOOT) && defined(CONFIG_E500MC) > /* ISBC uses L2 as stack. > @@ -729,8 +732,8 @@ create_init_ram_area: > msync > tlbwe > > - lis r6,MSR_IS|MSR_DS@h > - ori r6,r6,MSR_IS|MSR_DS@l > + lis r6,MSR_IS|MSR_DS|MSR_DE@h > + ori r6,r6,MSR_IS|MSR_DS|MSR_DE@l > lis r7,switch_as@h > ori r7,r7,switch_as@l > > -- > 1.7.5.4 > > > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot