exec: Declare CPUBreakpoint/CPUWatchpoint type in 'breakpoint.h' header
[qemu/armbru.git] / include / exec / breakpoint.h
blob95f0482e6d0dc7e56b0bc6a9992f12e1ff314c8c
1 /*
2 * QEMU breakpoint & watchpoint definitions
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 #ifndef EXEC_BREAKPOINT_H
9 #define EXEC_BREAKPOINT_H
11 #include "qemu/queue.h"
12 #include "exec/vaddr.h"
13 #include "exec/memattrs.h"
15 typedef struct CPUBreakpoint {
16 vaddr pc;
17 int flags; /* BP_* */
18 QTAILQ_ENTRY(CPUBreakpoint) entry;
19 } CPUBreakpoint;
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;
30 #endif