ipdbg: fix double free of virtual-ir data
[openocd.git] / src / target / esirisc_regs.h
index a946a2ecc7f92dcc6a703b52b4092662a2bff500..51e7e6188d61a9fa2cb4e5cf5c5e29eec9482c30 100644 (file)
@@ -1,20 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /***************************************************************************
  *   Copyright (C) 2018 by Square, Inc.                                    *
  *   Steven Stallion <stallion@squareup.com>                               *
  *   James Zhao <hjz@squareup.com>                                         *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 #ifndef OPENOCD_TARGET_ESIRISC_REGS_H
@@ -148,8 +137,8 @@ enum esirisc_reg_num {
 #define CSR_DEBUG_HWDC                         0x03    /* Hardware Debug Control */
 #define CSR_DEBUG_DBS                          0x04    /* Data Breakpoint Size */
 #define CSR_DEBUG_DBR                          0x05    /* Data Breakpoint Range */
-#define CSR_DEBUG_IBAn                         0x08    /* Instruction Breakpoint Address [0..7] */
-#define CSR_DEBUG_DBAn                         0x10    /* Data Breakpoint Address [0..7] */
+#define CSR_DEBUG_IBA_N                                0x08    /* Instruction Breakpoint Address [0..7] */
+#define CSR_DEBUG_DBA_N                                0x10    /* Data Breakpoint Address [0..7] */
 
 /* Configuration CSRs */
 #define CSR_CONFIG_ARCH0                       0x00    /* Architectural Configuration 0 */
@@ -160,12 +149,12 @@ enum esirisc_reg_num {
 #define CSR_CONFIG_IC                          0x05    /* Instruction Cache Configuration */
 #define CSR_CONFIG_DC                          0x06    /* Data Cache Configuration */
 #define CSR_CONFIG_INT                         0x07    /* Interrupt Configuration */
-#define        CSR_CONFIG_ISA                        0x08    /* Instruction Set Configuration [0..6] */
+#define        CSR_CONFIG_ISA_N                        0x08    /* Instruction Set Configuration [0..6] */
 #define CSR_CONFIG_DBG                         0x0f    /* Debug Configuration */
 #define CSR_CONFIG_MID                         0x10    /* Manufacturer ID */
 #define CSR_CONFIG_REV                         0x11    /* Revision Number */
 #define CSR_CONFIG_MPID                                0x12    /* Multiprocessor ID */
-#define CSR_CONFIG_FREQ                      0x13    /* Frequency [0..2] */
+#define CSR_CONFIG_FREQ_N                      0x13    /* Frequency [0..2] */
 #define CSR_CONFIG_TRACE                       0x16    /* Trace Configuration */
 
 /* Trace CSRs */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)