target-sh4: ignore ocbp and ocbwb instructions
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 7 Jan 2012 14:20:12 +0000 (15:20 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 10 Jan 2012 17:30:08 +0000 (18:30 +0100)
commitd1dca3fb8502ad9f1f3c0aa5ac44cd5eb4fb4760
treedfcc2640500c6d9022f614d98926fe812873f86b
parent9b87c5f8eb646f87cc2c346046fbd10e543f67af
target-sh4: ignore ocbp and ocbwb instructions

ocbp and ocbwb controls the writeback of a cache line to memory. They
are supposed to do nothing in case of a cache miss. Given QEMU only
partially emulate caches, it is safe to ignore these instructions.

This fixes a kernel oops when trying to access an rtl8139 NIC with
recent versions.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 0cdb95549fedc73e13c147ab9dcabcc303426a07)
target-sh4/translate.c