qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] target-arm: implement architectural breakpoints
@ 2014-09-12 12:04 Peter Maydell
  2014-09-12 12:04 ` [Qemu-devel] [PATCH 1/2] target-arm: Implement setting guest breakpoints Peter Maydell
  2014-09-12 12:04 ` [Qemu-devel] [PATCH 2/2] target-arm: Implement handling of breakpoint firing Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2014-09-12 12:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, patches

Implement support for the ARM architecturally mandated hardware
breakpoints, for ARMv8 and ARMv7. Tested that hardware bps work
for both v7 and v8 kernels (including v8 compat userspace in a
32 bit kernel).

There are a few odd subfeatures which we don't implement (yet):
 * address-mismatch breakpoints which fire if the PC is anything
   other than the specified value
 * address-mismatch breakpoints with zero byte-address-select,
   which fire for every single instruction execution
 * unlinked context match breakpoints, which fire for every
   instruction executed with a particular value of CONTEXTIDR/VMID

These aren't used by Linux's ptrace support, and I wasn't
sure of the best way to implement them, so for now they just
produce a LOG_UNIMP warning if the guest tries to use them.

This patchset sits on target-arm.next (ie after the watchpoint code).

Peter Maydell (2):
  target-arm: Implement setting guest breakpoints
  target-arm: Implement handling of breakpoint firing

 target-arm/cpu.c       |   1 +
 target-arm/cpu.h       |   1 +
 target-arm/helper.c    | 126 ++++++++++++++++++++++++++++++++++++++++++++++++-
 target-arm/internals.h |  15 ++++++
 target-arm/machine.c   |   1 +
 target-arm/op_helper.c |  75 +++++++++++++++++++++++------
 6 files changed, 202 insertions(+), 17 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-12 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 12:04 [Qemu-devel] [PATCH 0/2] target-arm: implement architectural breakpoints Peter Maydell
2014-09-12 12:04 ` [Qemu-devel] [PATCH 1/2] target-arm: Implement setting guest breakpoints Peter Maydell
2014-09-12 12:04 ` [Qemu-devel] [PATCH 2/2] target-arm: Implement handling of breakpoint firing Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).