mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-13 15:09:39 +00:00
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…
x
Reference in New Issue
Block a user