Do you know where in the source file I should look into to add my custom logging functionality?
Or, would you suggest using gdb to look at my target register and memory contents? The answer in this link below looks really promising. I'm gonna give it a try first. https://stackoverflow.com/questions/39503997/how-to-run-a-single-line-of-assembly-then-see-r1-and-condition-flags However, if I am able to customize log, it will be super convenient. Cheers, Libo ------------------ Original ------------------ From: "Aleksandar Markovic";<aleksandar.m.m...@gmail.com>; Send time: Thursday, Sep 5, 2019 6:54 PM To: "Libo Zhou"<zhl...@foxmail.com>; Cc: "qemu-devel"<qemu-devel@nongnu.org>; Subject: Re: [Qemu-devel] QEMU as ISS (Instruction Set Simulator) 04.09.2019. 05.23, "Libo Zhou" <zhl...@foxmail.com> ?е написао/ла: > > Hi Aleksandar, > > I have spent some time looking at your MXU ASE patch. It's super helpful. I need to do exactly the same thing as you did. > > Now I just need a way to observe the memory and register file contents to debug my instruction set simulator. I played with the "-d" switch to log a bunch of information, but it seems that none of the items is of my interest. The "-d cpu_reset" option displays all zeros in the GPR log. > It looks you need a custom logging tailored to your needs, based on intercepting the instructions you added. Aleksandar > Please take your time, as I fully understand you need to work on Qemu while answering all my questions. Again, thank you very much for your help! > > Cheers, > Libo >