Hello everyone, In a personal research project I'm trying to trace the program execution on an OpenRISC-based virtual platform (for now OVP is used). For each executed instruction I dump the value of each processor register.
With the help of the symbol table in the compiled .elf file I want to detect the call and return cycle count of each called function. How one can achieve this (without using the dumped opcode of an instruction)? My method would be: - detect function calls: current PC==entry point of a function, LR (r9) address and SP (r1) are saved - detect function return: current PC==saved LR, current SP==saved SP Am I correct, or I'm missing something? Regards, Gabor Wacha _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
