[Gems-users] invalidating a cache block


Date: Tue, 08 Jan 2008 14:49:05 +0100
From: Mladen Nikitovic <mladen@xxxxxx>
Subject: [Gems-users] invalidating a cache block
Hi,

I would like to go through a cache and invalidate each entry block-by-block. I would like to do it in a way such that necessary events within ruby (replacements if needed) are triggered.

I found a code in opensolaris that is supposed to flush the cache (see below) but I suppose that the instruction stxa will not trigger the expected events in GEMS?

#define CH_CACHE_FLUSHALL(arg1, arg2, tmp1)

 sub arg1,arg2,tmp1;
1:
 stxa %g0, [tmp1]ASI_DC_TAG;
 membar #sync;
 cmp %g0, tmp1;
 bne,pt %icc, 1b;
 sub tmp1, arg2, tmp1;


I'm using the MOESI_CMP_directory protocol.

Thanks.

Regards,
Mladen




[← Prev in Thread] Current Thread [Next in Thread→]