8315206: RISC-V: hwprobe query is_set return wrong value
Reviewed-by: luhenry, fyang
This commit is contained in:
parent
ed1ea5fe7c
commit
876a725af9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user