xref: /qemu/target/hexagon/attribs.h (revision ea9cea93)
11118d7faSTaylor Simpson /*
21118d7faSTaylor Simpson  *  Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
31118d7faSTaylor Simpson  *
41118d7faSTaylor Simpson  *  This program is free software; you can redistribute it and/or modify
51118d7faSTaylor Simpson  *  it under the terms of the GNU General Public License as published by
61118d7faSTaylor Simpson  *  the Free Software Foundation; either version 2 of the License, or
71118d7faSTaylor Simpson  *  (at your option) any later version.
81118d7faSTaylor Simpson  *
91118d7faSTaylor Simpson  *  This program is distributed in the hope that it will be useful,
101118d7faSTaylor Simpson  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
111118d7faSTaylor Simpson  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
121118d7faSTaylor Simpson  *  GNU General Public License for more details.
131118d7faSTaylor Simpson  *
141118d7faSTaylor Simpson  *  You should have received a copy of the GNU General Public License
151118d7faSTaylor Simpson  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
161118d7faSTaylor Simpson  */
171118d7faSTaylor Simpson 
181118d7faSTaylor Simpson #ifndef HEXAGON_ATTRIBS_H
191118d7faSTaylor Simpson #define HEXAGON_ATTRIBS_H
201118d7faSTaylor Simpson 
211118d7faSTaylor Simpson #include "qemu/bitmap.h"
221118d7faSTaylor Simpson #include "opcodes.h"
231118d7faSTaylor Simpson 
241118d7faSTaylor Simpson enum {
251118d7faSTaylor Simpson #define DEF_ATTRIB(NAME, ...) A_##NAME,
261118d7faSTaylor Simpson #include "attribs_def.h.inc"
271118d7faSTaylor Simpson #undef DEF_ATTRIB
281118d7faSTaylor Simpson };
291118d7faSTaylor Simpson 
301118d7faSTaylor Simpson extern DECLARE_BITMAP(opcode_attribs[XX_LAST_OPCODE], A_ZZ_LASTATTRIB);
311118d7faSTaylor Simpson 
321118d7faSTaylor Simpson #define GET_ATTRIB(opcode, attrib) \
331118d7faSTaylor Simpson     test_bit(attrib, opcode_attribs[opcode])
341118d7faSTaylor Simpson 
35ea9cea93SMarkus Armbruster #endif /* HEXAGON_ATTRIBS_H */
36