From cd79f6b698625428e681e0177627392bb369a9f5 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 18 Jan 2005 23:01:17 -0500 Subject: [PATCH 1/3] Make the config stuff work on 64-bit machines objects/Pci.mpy: specify that the value is a long so that it is not interpreted as a negative value. --HG-- extra : convert_revision : 3b0df8711da5934aff0096ba54fb79da808e987b --- objects/Pci.mpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/Pci.mpy b/objects/Pci.mpy index d6917b020..a7763139f 100644 --- a/objects/Pci.mpy +++ b/objects/Pci.mpy @@ -1,7 +1,7 @@ from Device import FooPioDevice, DmaDevice simobj PciConfigData(FooPioDevice): - addr = 0xffffffffffffffff + addr = 0xffffffffffffffffL VendorID = Param.UInt16("Vendor ID") DeviceID = Param.UInt16("Device ID") Command = Param.UInt16(0, "Command") @@ -47,4 +47,4 @@ simobj PciDevice(DmaDevice): pci_func = Param.Int("PCI function code") configdata = Param.PciConfigData(Super, "PCI Config data") configspace = Param.PciConfigAll(Super, "PCI Configspace") - addr = 0xffffffffffffffff + addr = 0xffffffffffffffffL From b65f365474e6e861275cdab493fd1ad62b98933b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 19 Jan 2005 12:43:06 -0500 Subject: [PATCH 3/3] fix unserialization of PacketFifo dev/pktfifo.cc: fix unserialization. calling resize on a list just sticks uninitialized garbage into the list. --HG-- extra : convert_revision : 1cbff596dd0b88560e23b9368ec75a7369beb9d9 --- dev/pktfifo.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/dev/pktfifo.cc b/dev/pktfifo.cc index ae82123cf..79a96cc1d 100644 --- a/dev/pktfifo.cc +++ b/dev/pktfifo.cc @@ -60,7 +60,6 @@ PacketFifo::unserialize(const string &base, Checkpoint *cp, paramIn(cp, section, base + ".packets", fifosize); fifo.clear(); - fifo.resize(fifosize); for (int i = 0; i < fifosize; ++i) { PacketPtr p = new PacketData(16384);