On Friday 12 February 2010 08:24:01 you wrote: > On Fri, Feb 12, 2010 at 8:23 AM, Marc Pignat <marc.pig...@hevs.ch> wrote: > > On Thursday 11 February 2010 17:30:42 you wrote: > >> >> If it works it fixes a bug as well as adds a new feature. > >> > > >> > Error: arm920_virt2phys: not implemented > >> > > >> > > >> > I tried to copy virtphys from 926ejs, the debugged software still > >> > crashes. > >> > >> Could you provide a patch for a tested virtphys implementation for arm920? > > > > Here it is, this is a copy of the 926ejs function. I have tested it only > > using > > my rtems application (where virtual address mapping == physical). > > How did you test? Did it work?
I tested it using: LOG_USER("arm920_virt2phys virt=0x%08x -> phys = 0x%08x", virt, *phys); just before the return statement. It printed physical == virtural, so in my case at least, it is working ;) I mean the vir2phys function is working, the cache flush still crashes my app. About the data cache flush, I'm pretty sure this instruction is not in the data cache. What happens when we flush an address that is not in the data cache? Regards Marc _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development