Re: [Qemu-devel] sparc branch to pc+4 issue

2018-02-14 Thread Mark Cave-Ayland
On 13/02/18 20:57, Steven Seeger wrote: Consider pc==0x100: 0x100 b 0x104 The uncondtional not-annulled branch will go to 0x104, which is the next instruction anyway. do_branch() will leave dc->pc and dc->npc both set to 0x104. This causes gdb to have a problem when single stepping. It will

[Qemu-devel] sparc branch to pc+4 issue

2018-02-13 Thread Steven Seeger
Consider pc==0x100: 0x100 b 0x104 The uncondtional not-annulled branch will go to 0x104, which is the next instruction anyway. do_branch() will leave dc->pc and dc->npc both set to 0x104. This causes gdb to have a problem when single stepping. It will be stuck. QEMU will execute past this so