summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 13:35:26 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 13:35:26 -0700
commit4d5c7f70389b8911e37d391b09023dbf6a6ab0d9 (patch)
tree1235c60ee9ea65dcc48b0d3d7fbb7058409b99c4
parent3420ad7644b0f2e5dab9f99dfb4407be78e25305 (diff)
downloadgem5-4d5c7f70389b8911e37d391b09023dbf6a6ab0d9.tar.xz
X86: Change the default value for the IO APIC redirection table.
-rw-r--r--src/dev/x86/i82094aa.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dev/x86/i82094aa.cc b/src/dev/x86/i82094aa.cc
index f944e7171..1ae3b01cf 100644
--- a/src/dev/x86/i82094aa.cc
+++ b/src/dev/x86/i82094aa.cc
@@ -42,7 +42,11 @@ X86ISA::I82094AA::I82094AA(Params *p) : PioDevice(p), IntDev(this),
assert(id <= 0xf);
arbId = id;
regSel = 0;
- memset(redirTable, 0, sizeof(RedirTableEntry) * TableSize);
+ RedirTableEntry entry = 0;
+ entry.mask = 1;
+ for (int i = 0; i < TableSize; i++) {
+ redirTable[i] = entry;
+ }
}
Tick