Skip to content

Commit

Permalink
Merge pull request #1 from devec0/riscv-fix-gcc-82
Browse files Browse the repository at this point in the history
Fixed compilation on GCC 8.2.0
  • Loading branch information
xelll authored Apr 29, 2019
2 parents 5c2478b + c705bfc commit ec5d413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/target/riscv/riscv-011.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,14 @@ static unsigned int slot_offset(const struct target *target, slot_t slot)
case SLOT1: return 5;
case SLOT_LAST: return info->dramsize-1;
}
break;
case 64:
switch (slot) {
case SLOT0: return 4;
case SLOT1: return 6;
case SLOT_LAST: return info->dramsize-2;
}
break;
}
LOG_ERROR("slot_offset called with xlen=%d, slot=%d",
riscv_xlen(target), slot);
Expand Down

0 comments on commit ec5d413

Please sign in to comment.