Stub implementation for x86
authorGabe Black <gblack@eecs.umich.edu>
Mon, 5 Mar 2007 16:08:18 +0000 (16:08 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 5 Mar 2007 16:08:18 +0000 (16:08 +0000)
--HG--
extra : convert_revision : dd6b4d14070a2e99c179c5f780c9935847da8eda

src/arch/x86/locked_mem.hh

index c8c10a6585b6aef5cd54dfbdfa144d67264f7587..e1d289ee95b7389feae156b5f20781f2c0d904d7 100644 (file)
 #ifndef __ARCH_X86_LOCKEDMEM_HH__
 #define __ARCH_X86_LOCKEDMEM_HH__
 
-#error X86 is not yet supported!
+/**
+ * @file
+ *
+ * ISA-specific helper functions for locked memory accesses.
+ */
+
+#include "mem/request.hh"
 
 namespace X86ISA
 {
+    template <class XC>
+    inline void
+    handleLockedRead(XC *xc, Request *req)
+    {
+    }
+
+    template <class XC>
+    inline bool
+    handleLockedWrite(XC *xc, Request *req)
+    {
+        return true;
+    }
 };
 
 #endif // __ARCH_X86_LOCKEDMEM_HH__