openocd: src/target: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / nds32_v3.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2013 Andes Technology                                   *
5  *   Hsiangkai Wang <hkwang@andestech.com>                                 *
6  ***************************************************************************/
7
8 #ifndef OPENOCD_TARGET_NDS32_V3_H
9 #define OPENOCD_TARGET_NDS32_V3_H
10
11 #include "nds32.h"
12
13 struct nds32_v3_common {
14         struct nds32 nds32;
15
16         /** number of hardware breakpoints */
17         int32_t n_hbr;
18
19         /** number of used hardware watchpoints */
20         int32_t used_n_wp;
21
22         /** next hardware breakpoint index */
23         int32_t next_hbr_index;
24
25         /** low interference profiling */
26         bool low_interference_profile;
27 };
28
29 static inline struct nds32_v3_common *target_to_nds32_v3(struct target *target)
30 {
31         return container_of(target->arch_info, struct nds32_v3_common, nds32);
32 }
33
34 #endif /* OPENOCD_TARGET_NDS32_V3_H */