locked_mem.hh (8902:75b524b64c28) locked_mem.hh (9383:55fa95053ee8)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#define __ARCH_X86_LOCKEDMEM_HH__
33
34/**
35 * @file
36 *
37 * ISA-specific helper functions for locked memory accesses.
38 */
39
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#define __ARCH_X86_LOCKEDMEM_HH__
33
34/**
35 * @file
36 *
37 * ISA-specific helper functions for locked memory accesses.
38 */
39
40#include "mem/packet.hh"
40#include "mem/request.hh"
41
42namespace X86ISA
43{
44 template <class XC>
45 inline void
41#include "mem/request.hh"
42
43namespace X86ISA
44{
45 template <class XC>
46 inline void
47 handleLockedSnoop(XC *xc, PacketPtr pkt, Addr cacheBlockMask)
48 {
49 }
50
51 template <class XC>
52 inline void
46 handleLockedRead(XC *xc, Request *req)
47 {
48 }
49
50 template <class XC>
51 inline bool
52 handleLockedWrite(XC *xc, Request *req)
53 {
54 return true;
55 }
56}
57
58#endif // __ARCH_X86_LOCKEDMEM_HH__
53 handleLockedRead(XC *xc, Request *req)
54 {
55 }
56
57 template <class XC>
58 inline bool
59 handleLockedWrite(XC *xc, Request *req)
60 {
61 return true;
62 }
63}
64
65#endif // __ARCH_X86_LOCKEDMEM_HH__