1*508514edSDave Martin /* 2*508514edSDave Martin * opcodes-virt.h: Opcode definitions for the ARM virtualization extensions 3*508514edSDave Martin * Copyright (C) 2012 Linaro Limited 4*508514edSDave Martin * 5*508514edSDave Martin * This program is free software; you can redistribute it and/or modify 6*508514edSDave Martin * it under the terms of the GNU General Public License as published by 7*508514edSDave Martin * the Free Software Foundation; either version 2 of the License, or 8*508514edSDave Martin * (at your option) any later version. 9*508514edSDave Martin * 10*508514edSDave Martin * This program is distributed in the hope that it will be useful, 11*508514edSDave Martin * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*508514edSDave Martin * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*508514edSDave Martin * GNU General Public License for more details. 14*508514edSDave Martin * 15*508514edSDave Martin * You should have received a copy of the GNU General Public License along 16*508514edSDave Martin * with this program; if not, write to the Free Software Foundation, Inc., 17*508514edSDave Martin * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18*508514edSDave Martin */ 19*508514edSDave Martin #ifndef __ASM_ARM_OPCODES_VIRT_H 20*508514edSDave Martin #define __ASM_ARM_OPCODES_VIRT_H 21*508514edSDave Martin 22*508514edSDave Martin #include <asm/opcodes.h> 23*508514edSDave Martin 24*508514edSDave Martin #define __HVC(imm16) __inst_arm_thumb32( \ 25*508514edSDave Martin 0xE1400070 | (((imm16) & 0xFFF0) << 4) | ((imm16) & 0x000F), \ 26*508514edSDave Martin 0xF7E08000 | (((imm16) & 0xF000) << 4) | ((imm16) & 0x0FFF) \ 27*508514edSDave Martin ) 28*508514edSDave Martin 29*508514edSDave Martin #endif /* ! __ASM_ARM_OPCODES_VIRT_H */ 30