target-cris: Remove unnecessary ifdef from mmu.c
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Feb 2016 10:54:10 +0000 (10:54 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2016 14:29:26 +0000 (14:29 +0000)
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>
target-cris/mmu.c

index 1c95a415f2cab9a2402f7463031f7f0f55c2f5f3..4a9c595c2954b386ec88f1613368dce0b3ed96d8 100644 (file)
@@ -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