mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
Fix archinfo for v810 ##arch
This commit is contained in:
parent
2175715b0a
commit
1c8d35b36f
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user