java: update after the latest change on PPC in the core

This commit is contained in:
Nguyen Anh Quynh 2014-10-17 22:30:19 +08:00
parent 9dbb2f0b32
commit bec9af7f6d

View File

@ -23,10 +23,22 @@ public class Ppc {
}
}
public static class CrxType extends Structure {
public int scale;
public int reg;
public int cond;
@Override
public List getFieldOrder() {
return Arrays.asList("scale", "reg", "cond");
}
}
public static class OpValue extends Union {
public int reg;
public int imm;
public MemType mem;
public CrxType crx;
}
public static class Operand extends Structure {
@ -37,6 +49,8 @@ public class Ppc {
readField("type");
if (type == PPC_OP_MEM)
value.setType(MemType.class);
if (type == PPC_OP_CRX)
value.setType(CrxType.class);
if (type == PPC_OP_IMM || type == PPC_OP_REG)
value.setType(Integer.TYPE);
if (type == PPC_OP_INVALID)