18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2018 MIPS Tech, LLC
48c2ecf20Sopenharmony_ci * Author: Matt Redfearn <matt.redfearn@mips.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef __MIPS_ASM_ISA_REV_H__
88c2ecf20Sopenharmony_ci#define __MIPS_ASM_ISA_REV_H__
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/*
118c2ecf20Sopenharmony_ci * The ISA revision level. This is 0 for MIPS I to V and N for
128c2ecf20Sopenharmony_ci * MIPS{32,64}rN.
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/* If the compiler has defined __mips_isa_rev, believe it. */
168c2ecf20Sopenharmony_ci#ifdef __mips_isa_rev
178c2ecf20Sopenharmony_ci#define MIPS_ISA_REV __mips_isa_rev
188c2ecf20Sopenharmony_ci#else
198c2ecf20Sopenharmony_ci/* The compiler hasn't defined the isa rev so assume it's MIPS I - V (0) */
208c2ecf20Sopenharmony_ci#define MIPS_ISA_REV 0
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif /* __MIPS_ASM_ISA_REV_H__ */
25