Re: [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, Loongson2 has no Hit_invalidate_I in fact. And although it has 4-way icache, one Index_invalidate_I will invalidate all 4 ways of the same set.

The usermanual and datasheet can be downloaded from:

http://www.lemote.com/upfiles/godson2e-user-manual-V0.6.pdf


Ralf Baechle wrote:
On Sun, Apr 15, 2007 at 11:25:55PM +0800, tiansm@xxxxxxxxxx wrote:

+#if defined(CONFIG_CPU_LOONGSON2)
+#define Hit_Invalidate_I    	0x00

This #ifdef means Index_Invalidate_I and Hit_Invalidate_I will both be
defined as zero, is that really correct?

(This is the point where I would really like to have a CPU manual ...)

+#else
 #define Hit_Invalidate_I	0x10
+#endif

  Ralf






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux