Deleted Added
sdiff udiff text old ( 8232:b28d06a175be ) new ( 9383:55fa95053ee8 )
full compact
1/*
2 * Copyright (c) 2006-2007 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;
9 * redistributions in binary form must reproduce the above copyright

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

36 *
37 * ISA-specific helper functions for locked memory accesses.
38 */
39
40#include "arch/registers.hh"
41#include "base/misc.hh"
42#include "base/trace.hh"
43#include "debug/LLSC.hh"
44#include "mem/request.hh"
45
46namespace MipsISA
47{
48
49template <class XC>
50inline void
51handleLockedRead(XC *xc, Request *req)
52{
53 xc->setMiscReg(MISCREG_LLADDR, req->getPaddr() & ~0xf);
54 xc->setMiscReg(MISCREG_LLFLAG, true);
55 DPRINTF(LLSC, "[tid:%i]: Load-Link Flag Set & Load-Link"
56 " Address set to %x.\n",

--- 55 unchanged lines hidden ---