openocd: src/target: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / nds32_insn.h
index 08d3c5ca911efcef4f1835fbdb410452a903bce6..25eb9ab8c8f9a8afd7ace3272360688f7806c564 100644 (file)
@@ -1,25 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /***************************************************************************
  *   Copyright (C) 2013 Andes Technology                                   *
  *   Hsiangkai Wang <hkwang@andestech.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, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
-#ifndef __NDS32_INSN_H__
-#define __NDS32_INSN_H__
 
+#ifndef OPENOCD_TARGET_NDS32_INSN_H
+#define OPENOCD_TARGET_NDS32_INSN_H
 
 #define NOP                                            (0x40000009)
 #define DSB                                            (0x64000008)
@@ -74,8 +61,7 @@
 #define FMTDR(a, b)                            (0x6A000049 | ((a) << 20) | ((b) << 15))
 
 /* break instructions */
-extern const int NDS32_BREAK_16;
-extern const int NDS32_BREAK_32;
-
+#define NDS32_BREAK_16                 (0x00EA)
+#define NDS32_BREAK_32                 (0x0A000064)
 
-#endif /* __NDS32_INSN_H__ */
+#endif /* OPENOCD_TARGET_NDS32_INSN_H */