checkpatch: fix for flag --no-tree
[fw/openocd] / src / target / register.h
index 7c53d6e16deb531c82879001f494f98df69a7da7..1e4f2e088988dd9e0e25d06f686a5e912ad14057 100644 (file)
@@ -1,27 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /***************************************************************************
  *   Copyright (C) 2005 by Dominic Rath                                    *
  *   Dominic.Rath@gmx.de                                                   *
  *                                                                         *
  *   Copyright (C) 2007,2008 Ã˜yvind Harboe                                 *
  *   oyvind.harboe@zylin.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_REGISTER_H
 #define OPENOCD_TARGET_REGISTER_H
 
+#include "helper/replacements.h"
+#include "helper/types.h"
+
 struct target;
 
 enum reg_type {
@@ -127,13 +119,15 @@ struct reg {
        bool caller_save;
        /* Pointer to place where the value is stored, in the format understood by
         * the binarybuffer.h functions. */
-       void *value;
+       uint8_t *value;
        /* The stored value needs to be written to the target. */
        bool dirty;
        /* When true, value is valid. */
        bool valid;
        /* When false, the register doesn't actually exist in the target. */
        bool exist;
+       /* Hide the register from gdb and omit it in 'reg' cmd output */
+       bool hidden;
        /* Size of the register in bits. */
        uint32_t size;
        /* Used for generating XML description of registers. Can be set to NULL for