1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019 Intel Corporation. All rights reserved.
4  *
5  * Author: Marcin Rajwa <marcin.rajwa@linux.intel.com>
6  */
7 
8 /*
9  * Header file for xtensa specific defs for GDB.
10  */
11 
12 #ifndef __ARCH_DEBUG_GDB_XTENSA_DEFS_H__
13 #define __ARCH_DEBUG_GDB_XTENSA_DEFS_H__
14 
15 #include <xtensa/config/core-isa.h>
16 #include <xtensa/specreg.h>
17 
18 #define _AREG0			256
19 
20 #define STACK_SIZE		1024
21 #define DEBUG_PC		(EPC + XCHAL_DEBUGLEVEL)
22 #define DEBUG_EXCSAVE		(EXCSAVE + XCHAL_DEBUGLEVEL)
23 #define DEBUG_PS		(EPS + XCHAL_DEBUGLEVEL)
24 #define DEBUG_WINDOWBASE	WINDOWBASE
25 #define DEBUG_NUM_IBREAK	XCHAL_NUM_IBREAK
26 #define DEBUG_IBREAKENABLE	IBREAKENABLE
27 #define DEBUG_IBREAKA		IBREAKA
28 #define DEBUG_INTENABLE		INTENABLE
29 #define DEBUG_NUM_AREGS		XCHAL_NUM_AREGS
30 
31 #endif /* __ARCH_DEBUG_GDB_XTENSA_DEFS_H__ */
32