target-alpha: get rid of tests on env->user_mode_only

Replace runtime checks on env->user_mode_only by compile time
checks on CONFIG_USER_ONLY.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6277 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
aurel32 2009-01-12 21:33:22 +00:00
parent 932e71cd57
commit f48c144e24
1 changed files with 3 additions and 3 deletions

View File

@ -998,12 +998,12 @@ int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
uint64_t physical, page_size, end; uint64_t physical, page_size, end;
int prot, zbits, ret; int prot, zbits, ret;
if (env->user_mode_only) { #if defined(CONFIG_USER_ONLY)
ret = 2; ret = 2;
} else { #else
ret = virtual_to_physical(env, &physical, &zbits, &prot, ret = virtual_to_physical(env, &physical, &zbits, &prot,
address, mmu_idx, rw); address, mmu_idx, rw);
} #endif
switch (ret) { switch (ret) {
case 0: case 0:
/* No fault */ /* No fault */