提交 09bc878a 编写于 作者: B blueswir1

Make PCI class description tables const

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5400 c046a42c-6fe2-441c-8c8c-71466251a162
上级 8662d656
......@@ -515,7 +515,7 @@ typedef struct {
const char *desc;
} pci_class_desc;
static pci_class_desc pci_class_descriptions[] =
static const pci_class_desc pci_class_descriptions[] =
{
{ 0x0100, "SCSI controller"},
{ 0x0101, "IDE controller"},
......@@ -559,7 +559,7 @@ static void pci_info_device(PCIDevice *d)
{
int i, class;
PCIIORegion *r;
pci_class_desc *desc;
const pci_class_desc *desc;
term_printf(" Bus %2d, device %3d, function %d:\n",
d->bus->bus_num, d->devfn >> 3, d->devfn & 7);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册