Deleted Added
sdiff udiff text old ( 8229:78bf55f23338 ) new ( 9383:55fa95053ee8 )
full compact
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer;

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

36
37/**
38 * @file
39 *
40 * ISA-specific helper functions for locked memory accesses.
41 */
42
43#include "arch/arm/miscregs.hh"
44#include "mem/request.hh"
45
46namespace ArmISA
47{
48template <class XC>
49inline void
50handleLockedRead(XC *xc, Request *req)
51{
52 xc->setMiscReg(MISCREG_LOCKADDR, req->getPaddr() & ~0xf);
53 xc->setMiscReg(MISCREG_LOCKFLAG, true);
54}
55
56
57template <class XC>

--- 38 unchanged lines hidden ---