locked_mem.hh (10030:b531e328342d) locked_mem.hh (12218:8c5db15dc8e7)
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"
45#include "mem/request.hh"
44#include "arch/generic/locked_mem.hh"
46
45
47namespace PowerISA
48{
49
50template <class XC>
51inline void
52handleLockedSnoop(XC *xc, PacketPtr pkt, Addr cacheBlockMask)
53{
54}
55
56template <class XC>
57inline void
58handleLockedRead(XC *xc, Request *req)
59{
60}
61
62template <class XC>
63inline void
64handleLockedSnoopHit(XC *xc)
65{
66}
67
68template <class XC>
69inline bool
70handleLockedWrite(XC *xc, Request *req, Addr cacheBlockMask)
71{
72 return true;
73}
74
75} // namespace PowerISA
76
77#endif // __ARCH_POWER_LOCKED_MEM_HH__
46#endif // __ARCH_POWER_LOCKED_MEM_HH__