We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 295166b + 89f0573 commit 39d4c50Copy full SHA for 39d4c50
src/target/riscv/riscv-013.c
@@ -2610,8 +2610,8 @@ static int sample_memory_bus_v1(struct target *target,
2610
{
2611
RISCV013_INFO(info);
2612
unsigned int sbasize = get_field(info->sbcs, DM_SBCS_SBASIZE);
2613
- if (sbasize > 64) {
2614
- LOG_TARGET_ERROR(target, "Memory sampling is only implemented for sbasize <= 64.");
+ if (sbasize == 0 || sbasize > 64) {
+ LOG_TARGET_ERROR(target, "Memory sampling is only implemented for non-zero sbasize <= 64.");
2615
return ERROR_NOT_IMPLEMENTED;
2616
}
2617
0 commit comments