/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
/* KVX ELF IDs definitions.
Copyright (C) 2009-2024 Free Software Foundation, Inc.
Contributed by Kalray SA.
This file is part of GNU Binutils.
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 3 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; see the file COPYING3. If not,
see . */
/* This file holds definitions specific to the KV3 ELF IDs. */
#ifndef _KVX_ELFIDS_H_
#define _KVX_ELFIDS_H_
/* 16.15 8.7 4.3 0 */
/* +----------------------------+ */
/* | CUT | CORE |PIC |ABI | */
/* +----------------------------+ */
#define KVX_CUT_MASK 0x00ff0000
#define KVX_CORE_MASK 0x0000ff00
#define KVX_ABI_MASK 0x000000ff
#define KVX_MACH_MASK (KVX_CUT_MASK | KVX_CORE_MASK | KVX_ABI_MASK)
/*
* Machine private data :
* - byte 0 = ABI specific (PIC, OS, ...)
* - bit 0..3 = ABI ident
* - bit 4 = 32/64 bits addressing
* - bit 5 = PIC
* - byte 1 = Core info :
* - bits 0..3 = Core Major Version
* - bit 4..7 = Core Minor Version
*/
/* Core */
#define ELF_KVX_CORE_BIT_SHIFT (8)
#define ELF_KVX_CORE_MASK (0x7f<