Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-09-03 Thread Sergey Fedorov
On 02.09.2015 22:45, Peter Maydell wrote: > Maybe rather than trying to be clever with the existing wp APIs > we should have support for targets to register "did this really hit?" > callbacks that get called before the core code tries to really > generate the exception. Thank you, Peter, for the

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-09-02 Thread Sergey Fedorov
On 28.08.2015 22:21, Peter Maydell wrote: > The watchpoint code has a chance of cpu_resume_from_signal > doing the right thing, because we really did have the > code to do the load/store. However I have a feeling this > won't interact properly with the fact that ARM needs > BP_STOP_BEFORE_ACCESS

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-09-02 Thread Sergey Fedorov
On 02.09.2015 19:53, Sergey Fedorov wrote: > On 28.08.2015 22:21, Peter Maydell wrote: >> The watchpoint code has a chance of cpu_resume_from_signal >> doing the right thing, because we really did have the >> code to do the load/store. However I have a feeling this >> won't interact properly with

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-09-02 Thread Peter Maydell
On 2 September 2015 at 20:08, Sergey Fedorov wrote: > With the following patch the test is okay, but I am not sure that this > is a clean solution. Anyway, we can't do such a simple hack for > breakpoints. Seems that this is a systematic problem which can affect > all

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-09-01 Thread Sergey Fedorov
28.08.2015 22:21, Peter Maydell wrote: I think what we need to do is have the translate-a64.c code be smarter, and actually generate the real code if we're not going to really hit the bp. Except that we don't really have all the info in the flags to know for sure about that. So we probably need

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-08-28 Thread Peter Maydell
On 24 August 2015 at 18:36, Sergey Fedorov serge.f...@gmail.com wrote: Hi all, Seems there is a bug in ARM breakpoint emulation. I am not sure how to fix it and I would appreciate any suggestion. It is best illustrated by a simple test which sets up and enables an unlinked address match

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-08-25 Thread Christopher Covington
On 08/24/2015 01:36 PM, Sergey Fedorov wrote: Hi all, Seems there is a bug in ARM breakpoint emulation. I am not sure how to fix it and I would appreciate any suggestion. It is best illustrated by a simple test which sets up and enables an unlinked address match breakpoint but does not

[Qemu-devel] ARM softmmu breakpoint misbehavior

2015-08-24 Thread Sergey Fedorov
Hi all, Seems there is a bug in ARM breakpoint emulation. I am not sure how to fix it and I would appreciate any suggestion. It is best illustrated by a simple test which sets up and enables an unlinked address match breakpoint but does not enable debug exceptions globally by MDSCR_EL1.MDE bit.