locked_mem.hh (8229:78bf55f23338) 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_SPARC_LOCKED_MEM_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_SPARC_LOCKED_MEM_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 SparcISA
43{
44template <class XC>
45inline void
41#include "mem/request.hh"
42
43namespace SparcISA
44{
45template <class XC>
46inline void
47handleLockedSnoop(XC *xc, PacketPtr pkt, Addr cacheBlockMask)
48{
49}
50
51template <class XC>
52inline void
46handleLockedRead(XC *xc, Request *req)
47{
48}
49
50
51template <class XC>
52inline bool
53handleLockedWrite(XC *xc, Request *req)
54{
55 return true;
56}
57
58
59} // namespace SparcISA
60
61#endif
53handleLockedRead(XC *xc, Request *req)
54{
55}
56
57
58template <class XC>
59inline bool
60handleLockedWrite(XC *xc, Request *req)
61{
62 return true;
63}
64
65
66} // namespace SparcISA
67
68#endif