From: Paul Burton Date: Sat, 15 Jun 2013 15:34:40 +0000 (+0000) Subject: MIPS: Fix execution hazard during watchpoint register probe X-Git-Tag: v3.11-rc1~14^2^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e1503fd0428ed3a2e5e48734f47c9f4dfe5a3d;p=pandora-kernel.git MIPS: Fix execution hazard during watchpoint register probe Writing a value to a WatchLo* register creates an execution hazard, so if its value is then read before that hazard is cleared then said value may be invalid. The mips_probe_watch_registers function must therefore clear the execution hazard between setting the match bits in a WatchLo* register & reading the register back in order to check which are set. This fixes intermittent incorrect watchpoint register probing on some MIPS cores such as interAptiv & proAptiv. Signed-off-by: Paul Burton Reviewed-by: James Hogan Acked-by: Steven J. Hill Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/5474/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed