瀏覽代碼

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>
Peter Maydell 9 年之前
父節點
當前提交
70e6b879d7
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      target-cris/mmu.c

+ 0 - 3
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