On Monday 16 May 2005 10:41, David Woodhouse wrote: > On Wed, 2005-05-11 at 22:04 +0100, Paul Brook wrote: > > My solution is to search the function for the "ret" instruction and > > replace them with a jmp to the next block of code. On RISC targets this > > would be easy. > > About this easy, in fact... >... > + > + if (get32((uint32_t *)p) == 0x4e800020) { > + blr_addr = p; > + copy_size = p_end - p_start; > + break; > + }
You probably want to scan the whole function to check there aren't multiple blr instructions, and throw an error if there are. Other than that it looks ok to me. Paul _______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel