From b10a0092aecbc6927e9a2336188615ed97614fd0 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Tue, 13 Jun 2017 11:14:00 +0100 Subject: mem: Signal the local monitor when clearing the global monitor ARM systems require the coordination of the global and local monitors. When the system is run without caches the global monitor is implemented in the abstract memory object. This change adds a callback from the abstract memory that notifies the local monitor when the global monitor is cleared. Additionally, for ARM systems the local monitor signals the event register and wakes the thread context up. Subsequent wait-for-event (WFE) instructions will be immediately signaled. Change-Id: If6c038f3a6bea7239ba4258f07f39c7f9a30500b Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/3760 Maintainer: Nikos Nikoleris Reviewed-by: Jason Lowe-Power --- src/arch/x86/locked_mem.hh | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'src/arch/x86/locked_mem.hh') diff --git a/src/arch/x86/locked_mem.hh b/src/arch/x86/locked_mem.hh index 51cfb2ea3..0a746eb4e 100644 --- a/src/arch/x86/locked_mem.hh +++ b/src/arch/x86/locked_mem.hh @@ -37,35 +37,6 @@ * ISA-specific helper functions for locked memory accesses. */ -#include "mem/packet.hh" -#include "mem/request.hh" - -namespace X86ISA -{ - template - inline void - handleLockedSnoop(XC *xc, PacketPtr pkt, Addr cacheBlockMask) - { - } - - template - inline void - handleLockedRead(XC *xc, Request *req) - { - } - - template - inline bool - handleLockedWrite(XC *xc, Request *req, Addr cacheBlockMask) - { - return true; - } - - template - inline void - handleLockedSnoopHit(XC *xc) - { - } -} +#include "arch/generic/locked_mem.hh" #endif // __ARCH_X86_LOCKEDMEM_HH__ -- cgit v1.2.3