057e566097
Replace the FSF boilerplate with the SPDX tag. The SPDX tag on files *.c is incorrect, as it should use the C99 single line comment using '//'. But current checkpatch doesn't allow C99 comments, so keep using standard C comments, by now. Change-Id: I255ad17235ff1e01bf0aa4deed4d944e1d693ddb Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7071 Tested-by: jenkins
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* ESP32 target for OpenOCD *
|
|
* Copyright (C) 2017 Espressif Systems Ltd. *
|
|
***************************************************************************/
|
|
|
|
#ifndef OPENOCD_TARGET_ESP32_H
|
|
#define OPENOCD_TARGET_ESP32_H
|
|
|
|
#include <target/xtensa/xtensa_regs.h>
|
|
|
|
#define ESP32_DROM_LOW 0x3F400000
|
|
#define ESP32_DROM_HIGH 0x3F800000
|
|
#define ESP32_IROM_LOW 0x400D0000
|
|
#define ESP32_IROM_HIGH 0x40400000
|
|
|
|
/* Number of registers returned directly by the G command
|
|
* Corresponds to the amount of regs listed in regformats/reg-xtensa.dat in the gdb source */
|
|
#define ESP32_NUM_REGS_G_COMMAND 105
|
|
|
|
enum esp32_reg_id {
|
|
/* chip specific registers that extend ISA go after ISA-defined ones */
|
|
ESP32_REG_IDX_EXPSTATE = XT_USR_REG_START,
|
|
ESP32_REG_IDX_F64R_LO,
|
|
ESP32_REG_IDX_F64R_HI,
|
|
ESP32_REG_IDX_F64S,
|
|
ESP32_NUM_REGS,
|
|
};
|
|
|
|
#endif /* OPENOCD_TARGET_ESP32_H */
|