8315206: RISC-V: hwprobe query is_set return wrong value

Reviewed-by: luhenry, fyang
This commit is contained in:
Robbin Ehn 2023-08-30 08:56:50 +00:00
parent ed1ea5fe7c
commit 876a725af9

View File

@ -100,7 +100,7 @@ static bool is_valid(int64_t key) {
static bool is_set(int64_t key, uint64_t value_mask) {
if (is_valid(key)) {
return query[key].value & value_mask != 0;
return (query[key].value & value_mask) != 0;
}
return false;
}