Fix archinfo for v810 ##arch

This commit is contained in:
pancake 2023-03-29 17:16:39 +02:00 committed by pancake
parent 2175715b0a
commit 1c8d35b36f
2 changed files with 5 additions and 4 deletions

View File

@ -117,7 +117,7 @@ static bool decode(RArchSession *as, RAnalOp *op, RArchDecodeMask mask) {
return ilen > 0;
}
// WORDs must be aligned at even byte boundaries in the address space.
// WORDs must be aligned at even byte boundaries in the address space
static int archinfo(RArchSession *as, ut32 q) {
// R2_590
switch (q) {

View File

@ -450,12 +450,13 @@ static char *v810_regs(RArchSession *s) {
static int archinfo(RArchSession *as, ut32 q) {
switch (q) {
case R_ANAL_ARCHINFO_ALIGN:
return 1;
case R_ANAL_ARCHINFO_DATA_ALIGN:
return 2;
case R_ANAL_ARCHINFO_MAX_OP_SIZE:
return 8;
case R_ANAL_ARCHINFO_MIN_OP_SIZE:
return 2;
return 1;
case R_ANAL_ARCHINFO_MAX_OP_SIZE:
return 4;
}
return 0;
}