summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:16:43 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:16:43 -0800
commit82288e7c3eea0fc62746d746e325c888a13c0a22 (patch)
treee9cfc318aa62981e344a45158ad00865e7404b0f /src/arch/x86
parent7462cb0842b9963d137cb578be6a0f7c619712d1 (diff)
downloadgem5-82288e7c3eea0fc62746d746e325c888a13c0a22.tar.xz
X86: Add makeAtomicResponse to the read/write functions of x86 devices.
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/interrupts.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/interrupts.cc b/src/arch/x86/interrupts.cc
index 29157b3f5..30c532c2b 100644
--- a/src/arch/x86/interrupts.cc
+++ b/src/arch/x86/interrupts.cc
@@ -221,6 +221,7 @@ X86ISA::Interrupts::read(PacketPtr pkt)
"Reading Local APIC register %d at offset %#x as %#x.\n",
reg, offset, val);
pkt->setData(((uint8_t *)&val) + (offset & mask(3)));
+ pkt->makeAtomicResponse();
return latency;
}
@@ -238,6 +239,7 @@ X86ISA::Interrupts::write(PacketPtr pkt)
"Writing Local APIC register %d at offset %#x as %#x.\n",
reg, offset, gtoh(val));
setReg(reg, gtoh(val));
+ pkt->makeAtomicResponse();
return latency;
}
void