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_V2_H
9 #define OPENOCD_TARGET_NDS32_V2_H
13 struct nds32_v2_common
{
18 /** number of hardware breakpoints */
21 /** next hardware breakpoint index */
22 /** increase from low index to high index */
23 int32_t next_hbr_index
;
26 static inline struct nds32_v2_common
*target_to_nds32_v2(struct target
*target
)
28 return container_of(target
->arch_info
, struct nds32_v2_common
, nds32
);
31 #endif /* OPENOCD_TARGET_NDS32_V2_H */