package sun.jvm.hotspot.debugger.ia64;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.debugger.cdbg.*;
public abstract class IA64ThreadContext implements ThreadContext {
public static final int GR0 = 0;
public static final int GR1 = 1;
public static final int GR2 = 2;
public static final int GR3 = 3;
public static final int GR4 = 4;
public static final int GR5 = 5;
public static final int GR6 = 6;
public static final int GR7 = 7;
public static final int GR8 = 8;
public static final int GR9 = 9;
public static final int GR10 = 10;
public static final int GR11 = 11;
public static final int GR12 = 12;
public static final int SP = GR12;
public static final int GR13 = 13;
public static final int GR14 = 14;
public static final int GR15 = 15;
public static final int GR16 = 16;
public static final int GR17 = 17;
public static final int GR18 = 18;
public static final int GR19 = 19;
public static final int GR20 = 20;
public static final int GR21 = 21;
public static final int GR22 = 22;
public static final int GR23 = 23;
public static final int GR24 = 24;
public static final int GR25 = 25;
public static final int GR26 = 26;
public static final int GR27 = 27;
public static final int GR28 = 28;
public static final int GR29 = 29;
public static final int GR30 = 30;
public static final int GR31 = 31;
public static final int INT_NATS = 32;
public static final int PREDS = 33;
public static final int BR0 = 34;
public static final int BR_RP = BR0;
public static final int BR1 = 35;
public static final int BR2 = 36;
public static final int BR3 = 37;
public static final int BR4 = 38;
public static final int BR5 = 39;
public static final int BR6 = 40;
public static final int BR7 = 41;
public static final int AP_UNAT = 42;
public static final int AP_LC = 43;
public static final int AP_EC = 43;
public static final int AP_CCV = 45;
public static final int AP_DCR = 46;
public static final int RS_PFS = 47;
public static final int AP_PFS = RS_PFS;
public static final int RS_BSP = 48;
public static final int AR_BSP = RS_BSP;
public static final int RS_BSPSTORE = 49;
public static final int AP_BSPSTORE = RS_BSPSTORE;
public static final int RS_RSC = 50;
public static final int AP_RSC = RS_RSC;
public static final int RS_RNAT = 51;
public static final int AP_RNAT = RS_RNAT;
public static final int ST_IPSR = 52;
public static final int ST_IIP = 53;
public static final int ST_IFS = 54;
public static final int DB_I0 = 55;
public static final int DB_I1 = 56;
public static final int DB_I2 = 57;
public static final int DB_I3 = 58;
public static final int DB_I4 = 59;
public static final int DB_I5 = 60;
public static final int DB_I6 = 61;
public static final int DB_I7 = 62;
public static final int DB_D0 = 63;
public static final int DB_D1 = 64;
public static final int DB_D2 = 65;
public static final int DB_D3 = 66;
public static final int DB_D4 = 67;
public static final int DB_D5 = 68;
public static final int DB_D6 = 69;
public static final int DB_D7 = 70;
public static final int NPRGREG = 71;
private static final String[] regNames = {
"GR0", "GR1", "GR2", "GR3", "GR4", "GR5", "GR6", "GR7", "GR8",
"GR9", "GR10", "GR11", "GR12", "GR13", "GR14", "GR15", "GR16",
"GR17","GR18", "GR19", "GR20", "GR21", "GR22", "GR23", "GR24",
"GR25","GR26", "GR27", "GR28", "GR29", "GR30", "GR31",
"INT_NATS", "PREDS",
"BR0", "BR1", "BR2", "BR3", "BR4", "BR5", "BR6", "BR7",
"AP_UNAT", "AP_LC", "AP_EC", "AP_CCV", "AP_DCR",
"RS_FPS", "RS_BSP", "RS_BSPSTORE", "RS_RSC", "RS_RNAT",
"ST_IPSR", "ST_IIP", "ST_IFS",
"DB_I0", "DB_I1", "DB_I2", "DB_I3", "DB_I4", "DB_I5", "DB_I6", "DB_I7",
"DB_D0", "DB_D1", "DB_D2", "DB_D3", "DB_D4", "DB_D5", "DB_D6", "DB_D7"
};
private long[] data;
public IA64ThreadContext() {
data = new long[NPRGREG];
}
public int getNumRegisters() {
return NPRGREG;
}
public String getRegisterName(int index) {
return regNames[index];
}
public void setRegister(int index, long value) {
data[index] = value;
}
public long getRegister(int index) {
return data[index];
}
public CFrame getTopFrame(Debugger dbg) {
return null;
}
public abstract void setRegisterAsAddress(int index, Address value);
public abstract Address getRegisterAsAddress(int index);
}