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