1 /* 2 * xen/arch/arm/decode.h 3 * 4 * Instruction decoder 5 * 6 * Julien Grall <julien.grall@linaro.org> 7 * Copyright (C) 2013 Linaro Limited. 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 */ 19 20 #ifndef __ARCH_ARM_DECODE_H_ 21 #define __ARCH_ARM_DECODE_H_ 22 23 #include <asm/regs.h> 24 #include <asm/processor.h> 25 26 /** 27 * Decode an instruction from pc 28 * /!\ This function is not intended to fully decode an instruction. It 29 * considers that the instruction is valid. 30 * 31 * This function will get: 32 * - The transfer register 33 * - Sign bit 34 * - Size 35 */ 36 37 int decode_instruction(const struct cpu_user_regs *regs, 38 struct hsr_dabt *dabt); 39 40 #endif /* __ARCH_ARM_DECODE_H_ */ 41 42 /* 43 * Local variables: 44 * mode: C 45 * c-file-style: "BSD" 46 * c-basic-offset: 4 47 * indent-tabs-mode: nil 48 * End: 49 */ 50