locked_mem.hh (7811:a8fc35183c10) locked_mem.hh (9383:55fa95053ee8)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * Copyright (c) 2009 The University of Edinburgh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

36#define __ARCH_POWER_LOCKED_MEM_HH__
37
38/**
39 * @file
40 *
41 * ISA-specific helper functions for locked memory accesses.
42 */
43
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * Copyright (c) 2009 The University of Edinburgh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

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