loaders/reset/espressif: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / stm8.h
index b18ff58f997071ae42d28a1b08f18c65714d06cf..55e1071aba4c681d5cbbe59ef5067ccb3a73e121 100644 (file)
@@ -1,20 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
 *   OpenOCD STM8 target driver
 *   Copyright (C) 2017  Ake Rehnman
 *   ake.rehnman(at)gmail.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_STM8_H
 
 struct target;
 
-#define STM8_COMMON_MAGIC      0x53544D38
+#define STM8_COMMON_MAGIC      0x53544D38U
 #define STM8_NUM_CORE_REGS 6
 
 struct stm8_common {
-       uint32_t common_magic;
+       unsigned int common_magic;
+
        void *arch_info;
        struct reg_cache *core_cache;
        uint32_t core_regs[STM8_NUM_CORE_REGS];