aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-02-09 10:54:10 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-02-16 14:29:26 +0000
commit70e6b879d7d7c0aa1740e4d574c82b499a8b1343 (patch)
treec96714895b01115007e7ac54e4fc815040edc9da /target-cris
parent74c0e4744103652764cdf564849239b8dd426f15 (diff)
downloadqemu-70e6b879d7d7c0aa1740e4d574c82b499a8b1343.zip
qemu-70e6b879d7d7c0aa1740e4d574c82b499a8b1343.tar.gz
qemu-70e6b879d7d7c0aa1740e4d574c82b499a8b1343.tar.bz2
target-cris: Remove unnecessary ifdef from mmu.c
mmu.c is only built for CONFIG_SOFTMMU targets, so there is no need to redundantly surround the whole file contents with an #ifndef CONFIG_USER_ONLY. The ifdef also confuses the Coccinelle tool. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/mmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/target-cris/mmu.c b/target-cris/mmu.c
index 1c95a41..4a9c595 100644
--- a/target-cris/mmu.c
+++ b/target-cris/mmu.c
@@ -18,8 +18,6 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef CONFIG_USER_ONLY
-
#include "cpu.h"
#include "mmu.h"
@@ -360,4 +358,3 @@ int cris_mmu_translate(struct cris_mmu_result *res,
env->pregs[PR_SRS] = old_srs;
return miss;
}
-#endif