xref: /openbmc/qemu/include/exec/breakpoint.h (revision 4921d0a7)
1 /*
2  * QEMU breakpoint & watchpoint definitions
3  *
4  * Copyright (c) 2012 SUSE LINUX Products GmbH
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 #ifndef EXEC_BREAKPOINT_H
9 #define EXEC_BREAKPOINT_H
10 
11 #include "qemu/queue.h"
12 #include "exec/vaddr.h"
13 #include "exec/memattrs.h"
14 
15 typedef struct CPUBreakpoint {
16     vaddr pc;
17     int flags; /* BP_* */
18     QTAILQ_ENTRY(CPUBreakpoint) entry;
19 } CPUBreakpoint;
20 
21 typedef struct CPUWatchpoint {
22     vaddr vaddr;
23     vaddr len;
24     vaddr hitaddr;
25     MemTxAttrs hitattrs;
26     int flags; /* BP_* */
27     QTAILQ_ENTRY(CPUWatchpoint) entry;
28 } CPUWatchpoint;
29 
30 #endif
31