openocd: fix SPDX tag format for files .c
[fw/openocd] / src / target / armv8_opcodes.c
index 6887b295399da30c841f72df7ab92ede0c3d61ee..7afcc5219e706fb5539b2f4fb96b4f4d59903b22 100644 (file)
@@ -1,16 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (C) 2015 by Matthias Welwarsky <matthias.welwarsky@sysgo.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.
- *
  */
 
 #ifdef HAVE_CONFIG_H
@@ -68,13 +59,13 @@ static const uint32_t t32_opcodes[ARMV8_OPC_NUM] = {
                [ARMV8_OPC_DCCISW]      = ARMV4_5_MCR(15, 0, 0, 7, 14, 2),
                [ARMV8_OPC_DCCIVAC]     = ARMV4_5_MCR(15, 0, 0, 7, 14, 1),
                [ARMV8_OPC_ICIVAU]      = ARMV4_5_MCR(15, 0, 0, 7, 5, 1),
-               [ARMV8_OPC_HLT]         = ARMV8_HLT_A1(11),
-               [ARMV8_OPC_LDRB_IP]     = ARMV4_5_LDRB_IP(1, 0),
-               [ARMV8_OPC_LDRH_IP]     = ARMV4_5_LDRH_IP(1, 0),
-               [ARMV8_OPC_LDRW_IP]     = ARMV4_5_LDRW_IP(1, 0),
-               [ARMV8_OPC_STRB_IP]     = ARMV4_5_STRB_IP(1, 0),
-               [ARMV8_OPC_STRH_IP]     = ARMV4_5_STRH_IP(1, 0),
-               [ARMV8_OPC_STRW_IP]     = ARMV4_5_STRW_IP(1, 0),
+               [ARMV8_OPC_HLT]         = ARMV8_HLT_T1(11),
+               [ARMV8_OPC_LDRB_IP]     = ARMV8_LDRB_IP_T3(1, 0),
+               [ARMV8_OPC_LDRH_IP]     = ARMV8_LDRH_IP_T3(1, 0),
+               [ARMV8_OPC_LDRW_IP]     = ARMV8_LDRW_IP_T3(1, 0),
+               [ARMV8_OPC_STRB_IP]     = ARMV8_STRB_IP_T3(1, 0),
+               [ARMV8_OPC_STRH_IP]     = ARMV8_STRH_IP_T3(1, 0),
+               [ARMV8_OPC_STRW_IP]     = ARMV8_STRW_IP_T3(1, 0),
 };
 
 void armv8_select_opcodes(struct armv8_common *armv8, bool state_is_aarch64)