arm: expose alias registers SB, SL, FP & IP. attn: bindings

This commit is contained in:
Nguyen Anh Quynh 2013-12-19 16:50:57 +08:00
parent e832bd8996
commit d06e2f5ac1
3 changed files with 18 additions and 1 deletions

View File

@ -160,9 +160,15 @@ public class Arm_const {
public static final int ARM_REG_S30 = 109;
public static final int ARM_REG_S31 = 110;
public static final int ARM_REG_MAX = 111;
// alias registers
public static final int ARM_REG_R13 = ARM_REG_SP;
public static final int ARM_REG_R14 = ARM_REG_LR;
public static final int ARM_REG_R15 = ARM_REG_PC;
public static final int ARM_REG_SB = ARM_REG_R9;
public static final int ARM_REG_SL = ARM_REG_R10;
public static final int ARM_REG_FP = ARM_REG_R11;
public static final int ARM_REG_IP = ARM_REG_R12;
// ARM instruction

View File

@ -157,9 +157,15 @@ ARM_REG_S29 = 108
ARM_REG_S30 = 109
ARM_REG_S31 = 110
ARM_REG_MAX = 111
# alias registers
ARM_REG_R13 = ARM_REG_SP
ARM_REG_R14 = ARM_REG_LR
ARM_REG_R15 = ARM_REG_PC
ARM_REG_SB = ARM_REG_R9
ARM_REG_SL = ARM_REG_R10
ARM_REG_FP = ARM_REG_R11
ARM_REG_IP = ARM_REG_R12
# ARM instruction

View File

@ -210,10 +210,15 @@ typedef enum arm_reg {
ARM_REG_MAX, // <-- mark the end of the list or registers
// alias registers
//> alias registers
ARM_REG_R13 = ARM_REG_SP,
ARM_REG_R14 = ARM_REG_LR,
ARM_REG_R15 = ARM_REG_PC,
ARM_REG_SB = ARM_REG_R9,
ARM_REG_SL = ARM_REG_R10,
ARM_REG_FP = ARM_REG_R11,
ARM_REG_IP = ARM_REG_R12,
} arm_reg;
//> ARM instruction