1 /* 2 * Copyright (c) 2021 Andes Technology Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* 8 * Extra definitions required for CONFIG_RISCV_SOC_OFFSETS. 9 */ 10 11 #ifndef SOC_RISCV_ANDES_V5_SOC_OFFSETS_H_ 12 #define SOC_RISCV_ANDES_V5_SOC_OFFSETS_H_ 13 14 #ifdef CONFIG_RISCV_SOC_OFFSETS 15 16 /* Andes V5 specific registers. */ 17 #if defined(CONFIG_SOC_ANDES_V5_PFT) && defined(CONFIG_SOC_ANDES_V5_HWDSP) 18 #define GEN_SOC_OFFSET_SYMS() \ 19 GEN_OFFSET_SYM(soc_esf_t, mxstatus); \ 20 GEN_OFFSET_SYM(soc_esf_t, ucode) 21 22 #elif defined(CONFIG_SOC_ANDES_V5_PFT) 23 #define GEN_SOC_OFFSET_SYMS() \ 24 GEN_OFFSET_SYM(soc_esf_t, mxstatus) 25 26 #elif defined(CONFIG_SOC_ANDES_V5_HWDSP) 27 #define GEN_SOC_OFFSET_SYMS() \ 28 GEN_OFFSET_SYM(soc_esf_t, ucode) 29 30 #endif 31 32 #endif /* CONFIG_RISCV_SOC_OFFSETS */ 33 34 #endif /* SOC_RISCV_ANDES_V5_SOC_OFFSETS_H_*/ 35