1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2013 Andes Technology *
5 * Hsiangkai Wang <hkwang@andestech.com> *
6 ***************************************************************************/
8 #ifndef OPENOCD_TARGET_NDS32_V3_H
9 #define OPENOCD_TARGET_NDS32_V3_H
13 struct nds32_v3_common {
16 /** number of hardware breakpoints */
19 /** number of used hardware watchpoints */
22 /** next hardware breakpoint index */
23 int32_t next_hbr_index;
25 /** low interference profiling */
26 bool low_interference_profile;
29 static inline struct nds32_v3_common *target_to_nds32_v3(struct target *target)
31 return container_of(target->arch_info, struct nds32_v3_common, nds32);
34 #endif /* OPENOCD_TARGET_NDS32_V3_H */