summaryrefslogtreecommitdiff
path: root/dev/pcidev.cc
diff options
context:
space:
mode:
authorBenjamin Nash <benash@umich.edu>2005-08-12 18:30:35 -0400
committerBenjamin Nash <benash@umich.edu>2005-08-12 18:30:35 -0400
commit49063eb24f8fd2ad010224cc282c55dd5471dd65 (patch)
tree96595b8b1b650696467c87c6be08e1eaf18f47ca /dev/pcidev.cc
parenta115249eb07f6e3c9666bf408e214fcd38a665fb (diff)
downloadgem5-49063eb24f8fd2ad010224cc282c55dd5471dd65.tar.xz
Improve FreeBSD networking support.
dev/ns_gige.cc: Added FreeBSD support. Required additional register read/write functionality, hash filtering (faked), and EEPROM read access. dev/ns_gige.hh: Added constants and variables for FreeBSD support. Also created eepromKick() to advance state machine. dev/ns_gige_reg.h: Defined additional register bit fields. dev/pcidev.cc: Fix &= typo. dev/sinic.cc: Remove an INIT_PARAM_DFLT macro. dev/tsunami_io.cc: Fix DPRINTF typo. kern/freebsd/freebsd_system.cc: Edit comments. --HG-- extra : convert_revision : 37aaa1303d57d3784381e85acb3bc1743adeb8c0
Diffstat (limited to 'dev/pcidev.cc')
-rw-r--r--dev/pcidev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/pcidev.cc b/dev/pcidev.cc
index c74fb035c..54990cef3 100644
--- a/dev/pcidev.cc
+++ b/dev/pcidev.cc
@@ -190,7 +190,7 @@ PciDev::WriteConfig(int offset, int size, uint32_t data)
htoa((word_value & ~0x3) |
(htoa(config.data[offset]) & 0x3));
- if (word_value &= ~0x1) {
+ if (word_value & ~0x1) {
Addr base_addr = (word_value & ~0x1) + TSUNAMI_PCI0_IO;
Addr base_size = BARSize[barnum];