target-mips: Fix warning caused by unused local variable
Fix compilation with gcc-4.6, based on a patch from Stefan Weil <weil@mail.berlios.de>. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
7dd319027c
commit
99e43d366c
@ -272,8 +272,8 @@ int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
|||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
target_phys_addr_t physical;
|
target_phys_addr_t physical;
|
||||||
int prot;
|
int prot;
|
||||||
#endif
|
|
||||||
int access_type;
|
int access_type;
|
||||||
|
#endif
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -285,21 +285,19 @@ int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
|||||||
rw &= 1;
|
rw &= 1;
|
||||||
|
|
||||||
/* data access */
|
/* data access */
|
||||||
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
/* XXX: put correct access by using cpu_restore_state()
|
/* XXX: put correct access by using cpu_restore_state()
|
||||||
correctly */
|
correctly */
|
||||||
access_type = ACCESS_INT;
|
access_type = ACCESS_INT;
|
||||||
#if defined(CONFIG_USER_ONLY)
|
|
||||||
ret = TLBRET_NOMATCH;
|
|
||||||
#else
|
|
||||||
ret = get_physical_address(env, &physical, &prot,
|
ret = get_physical_address(env, &physical, &prot,
|
||||||
address, rw, access_type);
|
address, rw, access_type);
|
||||||
qemu_log("%s address=" TARGET_FMT_lx " ret %d physical " TARGET_FMT_plx " prot %d\n",
|
qemu_log("%s address=" TARGET_FMT_lx " ret %d physical " TARGET_FMT_plx " prot %d\n",
|
||||||
__func__, address, ret, physical, prot);
|
__func__, address, ret, physical, prot);
|
||||||
if (ret == TLBRET_MATCH) {
|
if (ret == TLBRET_MATCH) {
|
||||||
tlb_set_page(env, address & TARGET_PAGE_MASK,
|
tlb_set_page(env, address & TARGET_PAGE_MASK,
|
||||||
physical & TARGET_PAGE_MASK, prot | PAGE_EXEC,
|
physical & TARGET_PAGE_MASK, prot | PAGE_EXEC,
|
||||||
mmu_idx, TARGET_PAGE_SIZE);
|
mmu_idx, TARGET_PAGE_SIZE);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else if (ret < 0)
|
} else if (ret < 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user