openrisc: implement profiling function

OpenRISC does not need to be halted before we can read the program
counter. This patch implement an openrisc specific profiling function.