vmm: Automatically fix operator precedence clippy warning

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2025-01-06 18:09:56 +00:00
committed by Bo Chen
parent 2624f17ffe
commit 3e4ed5621e
2 changed files with 2 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ fn create_facp_table(dsdt_offset: GuestAddress, device_manager: &Arc<Mutex<Devic
// Architecture common fields
// HW_REDUCED_ACPI, RESET_REG_SUP, TMR_VAL_EXT
let fadt_flags: u32 = 1 << 20 | 1 << 10 | 1 << 8;
let fadt_flags: u32 = (1 << 20) | (1 << 10) | (1 << 8);
facp.write(112, fadt_flags);
// FADT minor version
facp.write(131, 3u8);

View File

@@ -1435,7 +1435,7 @@ impl CpuManager {
1 << MADT_CPU_ENABLE_FLAG
} else {
0
} | 1 << MADT_CPU_ONLINE_CAPABLE_FLAG,
} | (1 << MADT_CPU_ONLINE_CAPABLE_FLAG),
_reserved: 0,
};
madt.append(lapic);