On Mon, Mar 09, 2020 at 11:26:07AM +0800, 罗勇刚(Yonggang Luo) wrote: > When I am running QEMU to simulating PowerPC. > And after running the following powerpc code: > 00e2b5dc <intUnlock>: > intUnlock(): > e2b5dc: 54 63 04 20 rlwinm r3,r3,0,16,16 > e2b5e0: 7c 80 00 a6 mfmsr r4 > e2b5e4: 7c 83 1b 78 or r3,r4,r3 > e2b5e8: 7c 60 01 24 mtmsr r3 > e2b5ec: 4c 00 01 2c isync > e2b5f0: 4e 80 00 20 blr > > The QEMU are getting stuck and can not running the following instructions, > What I need to do to inspect which instruction are getting stuck and how to > fix it? > Any means to debugging that.
CCing ppc maintainers. You could begin debugging this using QEMU's GDB stub (the -s command-line option), TCG debug output (the -d command-line option), and the HMP "info status" command to check that the CPU is running. Good luck! Stefan
signature.asc
Description: PGP signature