summaryrefslogtreecommitdiffstats
path: root/hw/ppc
diff options
context:
space:
mode:
authorDavid Gibson2021-07-08 07:40:21 +0200
committerDavid Gibson2021-07-09 02:38:19 +0200
commite7dfb29e5a757de09b890df42fbeb5b70c6f2a9f (patch)
treee2b7d50d63fbfd8f92848f1863e6154438a8ed58 /hw/ppc
parentppc/pegasos2: Use Virtual Open Firmware as firmware replacement (diff)
downloadqemu-e7dfb29e5a757de09b890df42fbeb5b70c6f2a9f.tar.gz
qemu-e7dfb29e5a757de09b890df42fbeb5b70c6f2a9f.tar.xz
qemu-e7dfb29e5a757de09b890df42fbeb5b70c6f2a9f.zip
ppc/pegasos2: Fix use of && instead of &
This is obviously intended to be a mask, not a logical operation. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/pegasos2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c
index f1741a4512..cf1dc53c83 100644
--- a/hw/ppc/pegasos2.c
+++ b/hw/ppc/pegasos2.c
@@ -584,7 +584,7 @@ static void add_pci_device(PCIBus *bus, PCIDevice *d, void *opaque)
pci_get_word(&d->config[PCI_SUBSYSTEM_VENDOR_ID]));
cells[0] = pci_get_long(&d->config[PCI_CLASS_REVISION]);
qemu_fdt_setprop_cell(fi->fdt, node->str, "class-code", cells[0] >> 8);
- qemu_fdt_setprop_cell(fi->fdt, node->str, "revision-id", cells[0] && 0xff);
+ qemu_fdt_setprop_cell(fi->fdt, node->str, "revision-id", cells[0] & 0xff);
qemu_fdt_setprop_cell(fi->fdt, node->str, "device-id",
pci_get_word(&d->config[PCI_DEVICE_ID]));
qemu_fdt_setprop_cell(fi->fdt, node->str, "vendor-id",