aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/gen-idecode.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-03 03:07:25 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 03:13:47 -0500
commit339e44f8c0bcd4c9d8cf10faddff61fbb39cb201 (patch)
tree03adfc8ee3f62c4e47d84c4f6f20a9a2549f9135 /sim/igen/gen-idecode.h
parentb37a470842dd788c32e52f5b43de44cc30c19305 (diff)
downloadbinutils-339e44f8c0bcd4c9d8cf10faddff61fbb39cb201.zip
binutils-339e44f8c0bcd4c9d8cf10faddff61fbb39cb201.tar.gz
binutils-339e44f8c0bcd4c9d8cf10faddff61fbb39cb201.tar.bz2
sim: igen: clean up headers a bit
Add standard multiple inclusion protection, and add a few missing local includes when one header uses another. This isn't complete, but fixes some short comings seen when merging the ppc igen.
Diffstat (limited to 'sim/igen/gen-idecode.h')
-rw-r--r--sim/igen/gen-idecode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/igen/gen-idecode.h b/sim/igen/gen-idecode.h
index 63ae883..05a7055 100644
--- a/sim/igen/gen-idecode.h
+++ b/sim/igen/gen-idecode.h
@@ -19,6 +19,8 @@
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 IGEN_GEN_IDECODE_H
+#define IGEN_GEN_IDECODE_H
void print_idecode_issue_function_header
(lf *file,
@@ -45,3 +47,5 @@ extern void print_idecode_validate
(lf *file,
const insn_entry *instruction,
const insn_opcodes *opcode_paths);
+
+#endif /* IGEN_GEN_IDECODE_H */